Preprocessor: fix for 'steady_state_model' when not computing Ramsey policy'

issue#70
Sébastien Villemot 2010-06-04 09:33:54 +03:00
parent 851dcc88a6
commit c54f60dd23
1 changed files with 4 additions and 2 deletions

View File

@ -93,8 +93,10 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_polic
else
output << "ys_orig_";
output << ", exo_)" << endl
<< "% Steady state generated by Dynare preprocessor" << endl
<< " global M_" << endl;
<< "% Steady state generated by Dynare preprocessor" << endl;
if (!ramsey_policy)
output << " ys_=zeros(" << symbol_table.orig_endo_nbr() << ",1);" << endl;
output << " global M_" << endl;
for(size_t i = 0; i < recursive_order.size(); i++)
{