make steady state file modify variables in place
parent
3bf6b14049
commit
6b96a83d8b
|
@ -128,9 +128,8 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_model
|
||||||
<< " info = 0;" << endl;
|
<< " info = 0;" << endl;
|
||||||
else
|
else
|
||||||
output << "module " << basename << "SteadyState2" << endl << endl
|
output << "module " << basename << "SteadyState2" << endl << endl
|
||||||
<< "export steady_state" << endl << endl
|
<< "export steady_state!" << endl << endl
|
||||||
<< "function steady_state(ys_, exo_, params)" << endl
|
<< "function steady_state!(ys_, exo_, params)" << endl;
|
||||||
<< " info = 0" << endl;
|
|
||||||
|
|
||||||
for (size_t i = 0; i < def_table.size(); i++)
|
for (size_t i = 0; i < def_table.size(); i++)
|
||||||
{
|
{
|
||||||
|
@ -158,10 +157,10 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_model
|
||||||
else
|
else
|
||||||
output << " # Auxiliary equations" << endl;
|
output << " # Auxiliary equations" << endl;
|
||||||
static_model.writeAuxVarInitval(output, output_type);
|
static_model.writeAuxVarInitval(output, output_type);
|
||||||
output << " check_=0;" << endl;
|
|
||||||
|
|
||||||
if (julia)
|
if (!julia)
|
||||||
output << " (ys_, params, info)" << endl;
|
output << " check_=0;" << endl;
|
||||||
|
|
||||||
output << "end" << endl;
|
output << "end" << endl;
|
||||||
if (julia)
|
if (julia)
|
||||||
output << "end" << endl;
|
output << "end" << endl;
|
||||||
|
|
Loading…
Reference in New Issue