trunk: reverted r2572 changeset

git-svn-id: https://www.dynare.org/svn/dynare/trunk@2601 ac1d8469-bf42-47a9-8791-bf33cf982152
issue#70
sebastien 2009-04-18 14:07:57 +00:00
parent 1d0d05cee1
commit d2b347eb3a
1 changed files with 3 additions and 4 deletions

View File

@ -1160,10 +1160,9 @@ DynamicModel::writeDynamicCFile(const string &dynamic_basename) const
<< " g2 = NULL;" << endl << " g2 = NULL;" << endl
<< " if (nlhs >= 3)" << endl << " if (nlhs >= 3)" << endl
<< " {" << endl << " {" << endl
<< " /* Set the output pointer to the output matrix g2. */" << endl; << " /* Set the output pointer to the output matrix g2. */" << endl
int g2_ncols = getDynJacobianColsNbr()*getDynJacobianColsNbr(); << " plhs[2] = mxCreateDoubleMatrix(" << equations.size() << ", " << getDynJacobianColsNbr()*getDynJacobianColsNbr()
mDynamicModelFile << " plhs[2] = mxCreateSparse(" << equations.size() << ", " << g2_ncols << ", " << ", mxREAL);" << endl
<< 5*g2_ncols << ", mxREAL);" << endl
<< " /* Create a C pointer to a copy of the output matrix g1. */" << endl << " /* Create a C pointer to a copy of the output matrix g1. */" << endl
<< " g2 = mxGetPr(plhs[2]);" << endl << " g2 = mxGetPr(plhs[2]);" << endl
<< " }" << endl << " }" << endl