Fix bug in *_{dynamic,static}_resid_g1_g2_g3.m functions

issue#70
Sébastien Villemot 2018-05-22 12:02:48 +02:00
parent 732a317030
commit 3fa14031a2
2 changed files with 2 additions and 2 deletions

View File

@ -2185,7 +2185,7 @@ DynamicModel::writeWrapperFunctions(const string &basename, const string &ending
<< " g2 = " << basename + "_g2(T, y, x, params, steady_state, it_, false);" << endl;
else if (ending == "g3")
output << " T = " << basename + "_" + ending + "_tt(T, y, x, params, steady_state, it_);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1(T, y, x, params, steady_state, it_, false);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1_g2(T, y, x, params, steady_state, it_, false);" << endl
<< " g3 = " << basename + "_g3(T, y, x, params, steady_state, it_, false);" << endl;
output << endl << "end" << endl;

View File

@ -1209,7 +1209,7 @@ StaticModel::writeWrapperFunctions(const string &basename, const string &ending)
<< " g2 = " << basename + "_g2(T, y, x, params, false);" << endl;
else if (ending == "g3")
output << " T = " << basename + "_" + ending + "_tt(T, y, x, params);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1(T, y, x, params, false);" << endl
<< " [residual, g1, g2] = " << basename + "_resid_g1_g2(T, y, x, params, false);" << endl
<< " g3 = " << basename + "_g3(T, y, x, params, false);" << endl;
output << endl << "end" << endl;