Skip to content

Commit

Permalink
[matlab] Redirect constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
ischoegl authored and speth committed Feb 19, 2021
1 parent 7024757 commit 9d6095a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/matlab/flowdevicemethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ void flowdevicemethods(int nlhs, mxArray* plhs[],
if (job == 0) {
char* type = getString(prhs[2]);

n = flowdev_new2(type);
n = flowdev_new(type);
plhs[0] = mxCreateNumericMatrix(1,1,mxDOUBLE_CLASS,mxREAL);
double* h = mxGetPr(plhs[0]);
*h = double(n);
Expand Down
2 changes: 1 addition & 1 deletion src/matlab/reactormethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void reactormethods(int nlhs, mxArray* plhs[],
if (job == 0) {
char* type = getString(prhs[2]);

n = reactor_new2(type);
n = reactor_new(type);
plhs[0] = mxCreateNumericMatrix(1,1,mxDOUBLE_CLASS,mxREAL);
double* h = mxGetPr(plhs[0]);
*h = double(n);
Expand Down
2 changes: 1 addition & 1 deletion src/matlab/wallmethods.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ void wallmethods(int nlhs, mxArray* plhs[],
// constructor
if (job == 0) {
char* type = getString(prhs[2]);
n = wall_new2(type);
n = wall_new(type);
plhs[0] = mxCreateNumericMatrix(1,1,mxDOUBLE_CLASS,mxREAL);
double* h = mxGetPr(plhs[0]);
*h = double(n);
Expand Down

0 comments on commit 9d6095a

Please sign in to comment.