clean up printing
parent
34e649afc7
commit
4a4a4c1d54
|
@ -2554,14 +2554,14 @@ DynamicModel::writeOutput(ostream &output, const string &basename, bool block_de
|
||||||
// Write equation tags
|
// Write equation tags
|
||||||
if (julia)
|
if (julia)
|
||||||
{
|
{
|
||||||
output << modstruct << "equations_tags = [" << endl;
|
output << modstruct << "equation_tags = [" << endl;
|
||||||
for (size_t i = 0; i < equation_tags.size(); i++)
|
for (size_t i = 0; i < equation_tags.size(); i++)
|
||||||
output << " EquationTag(" << equation_tags[i].first + 1 << " , \""
|
output << " EquationTag("
|
||||||
|
<< equation_tags[i].first + 1 << " , \""
|
||||||
<< equation_tags[i].second.first << "\" , \""
|
<< equation_tags[i].second.first << "\" , \""
|
||||||
<< equation_tags[i].second.second << "\")" << endl;
|
<< equation_tags[i].second.second << "\")" << endl;
|
||||||
output << " ]" << endl;
|
output << " ]" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
output << modstruct << "equations_tags = {" << endl;
|
output << modstruct << "equations_tags = {" << endl;
|
||||||
|
|
|
@ -1483,7 +1483,7 @@ StaticModel::writeStaticModel(ostream &StaticOutput, bool use_dll, bool julia) c
|
||||||
<< model_output.str()
|
<< model_output.str()
|
||||||
<< " #" << endl
|
<< " #" << endl
|
||||||
<< " # Jacobian matrix" << endl
|
<< " # Jacobian matrix" << endl
|
||||||
<< " #" << endl << endl
|
<< " #" << endl
|
||||||
<< jacobian_output.str()
|
<< jacobian_output.str()
|
||||||
<< " if ~isreal(g1)" << endl
|
<< " if ~isreal(g1)" << endl
|
||||||
<< " g1 = real(g1)+2*imag(g1);" << endl
|
<< " g1 = real(g1)+2*imag(g1);" << endl
|
||||||
|
|
Loading…
Reference in New Issue