Commit a8b7bd31 authored by Sébastien Villemot's avatar Sébastien Villemot

Fix bug introduced in use_dll mode in 23a08a36

Ref. #40
parent b0c819cb
Pipeline #2925 passed with stages
in 5 minutes and 21 seconds
......@@ -1780,7 +1780,7 @@ DynamicModel::writeDynamicCFile(const string &basename) const
<< "void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])" << endl
<< "{" << endl
<< " /* Check that no derivatives of higher order than computed are being requested */" << endl
<< " if (nlhs > " << computed_derivs_order << ")" << endl
<< " if (nlhs > " << computed_derivs_order + 1 << ")" << endl
<< R"( mexErrMsgTxt("Derivatives of higher order than computed have been requested");)" << endl
<< " /* Create a pointer to the input matrix y. */" << endl
<< " double *y = mxGetPr(prhs[0]);" << endl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment