From 3ea37bb2f83b2011d6fb6ed24842b3223aecf1fc Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Fri, 21 Apr 2017 17:51:13 +0200 Subject: [PATCH] preprocessor: re-implement 2bb97a90d6a346244ca992b9caff6e4c55dd7f66 --- preprocessor/DynamicModel.cc | 2 +- preprocessor/ExprNode.cc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/preprocessor/DynamicModel.cc b/preprocessor/DynamicModel.cc index 32e3f38412..cccaa50494 100644 --- a/preprocessor/DynamicModel.cc +++ b/preprocessor/DynamicModel.cc @@ -1527,7 +1527,7 @@ DynamicModel::writeDynamicMFile(const string &dynamic_basename) const cerr << "Error: Can't open file " << filename << " for writing" << endl; exit(EXIT_FAILURE); } - mDynamicModelFile << "function [residual, g1, g2, g3] = " << dynamic_basename << "(y, x, params, steady_state, it_)" << endl + mDynamicModelFile << "function [residual, g1, g2, g3] = " << dynamic_basename << "(y, x, params, steady_state, steady_state_x, it_)" << endl << "%" << endl << "% Status : Computes dynamic model for Dynare" << endl << "%" << endl diff --git a/preprocessor/ExprNode.cc b/preprocessor/ExprNode.cc index 4d723fa7ef..55d7385e5c 100644 --- a/preprocessor/ExprNode.cc +++ b/preprocessor/ExprNode.cc @@ -769,10 +769,10 @@ VariableNode::writeOutput(ostream &output, ExprNodeOutputType output_type, break; case oMatlabOutsideModel: assert(lag == 0); - output << "oo_.exo_steady_state(" << i << ")"; + output << "steady_state_x(" << i << ")"; break; case oMatlabDynamicSteadyStateOperator: - output << "oo_.exo_steady_state(" << i << ")"; + output << "steady_state_x(" << i << ")"; break; case oJuliaSteadyStateFile: case oSteadyStateFile: -- GitLab