Skip to content
Snippets Groups Projects
Commit f5b35df2 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

k-order perturbation: fixed bug in M-file evaluation

parent 88d58a3c
Branches
Tags
No related merge requests found
...@@ -43,7 +43,7 @@ DynamicModelMFile::eval(const Vector &y, const Vector &x, const Vector &modParam ...@@ -43,7 +43,7 @@ DynamicModelMFile::eval(const Vector &y, const Vector &x, const Vector &modParam
memcpy((void *) (mxGetPr(prhs[0])), (void *) y.base(), y.length()*sizeof(double)); memcpy((void *) (mxGetPr(prhs[0])), (void *) y.base(), y.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[1])), (void *) x.base(), x.length()*sizeof(double)); memcpy((void *) (mxGetPr(prhs[1])), (void *) x.base(), x.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[2])), (void *) modParams.base(), modParams.length()*sizeof(double)); memcpy((void *) (mxGetPr(prhs[2])), (void *) modParams.base(), modParams.length()*sizeof(double));
memcpy((void *) (mxGetPr(prhs[3])), (void *) ySteady.base(), modParams.length()*sizeof(double)); memcpy((void *) (mxGetPr(prhs[3])), (void *) ySteady.base(), ySteady.length()*sizeof(double));
int retVal = mexCallMATLAB(nlhs_dynamic, plhs, nrhs_dynamic, prhs, DynamicMFilename.c_str()); int retVal = mexCallMATLAB(nlhs_dynamic, plhs, nrhs_dynamic, prhs, DynamicMFilename.c_str());
if (retVal != 0) if (retVal != 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment