Commit fb685925 authored by MichelJuillard's avatar MichelJuillard
Browse files

correcting bug in forcing real values for complex elements of Jacobian in static model

parent 6a45f0a9
...@@ -1193,7 +1193,7 @@ StaticModel::writeStaticMFile(const string &func_name) const ...@@ -1193,7 +1193,7 @@ StaticModel::writeStaticMFile(const string &func_name) const
} }
output << " if ~isreal(g1)" << endl output << " if ~isreal(g1)" << endl
<< " g1 = real(g1)+2*imag(g1);" << endl << " g1 = real(g1)+imag(g1).^2;" << endl
<< " end" << endl << " end" << endl
<< "end" << endl << "end" << endl
<< "if nargout >= 3," << endl << "if nargout >= 3," << endl
......
Supports Markdown
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