Fix bug in *_{dynamic,static}_resid_g1_g2_g3.m functions
parent
732a317030
commit
3fa14031a2
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue