preprocessor: modified order of auxiliary variables definitions
parent
5aefe283d2
commit
09a6b96c5f
|
@ -1702,7 +1702,7 @@ StaticModel::writeLatexFile(const string &basename) const
|
|||
void
|
||||
StaticModel::writeAuxVarInitval(ostream &output, ExprNodeOutputType output_type) const
|
||||
{
|
||||
for (int i = 0; i < (int) aux_equations.size(); i++)
|
||||
for (int i = (int) aux_equations.size()-1; i >= 0; i--)
|
||||
{
|
||||
dynamic_cast<ExprNode *>(aux_equations[i])->writeOutput(output, output_type);
|
||||
output << ";" << endl;
|
||||
|
@ -1730,7 +1730,7 @@ void StaticModel::writeAuxVarRecursiveDefinitions(const string &basename) const
|
|||
<< "% from model file (.mod)" << endl
|
||||
<< endl;
|
||||
|
||||
for (int i = 0; i < (int) aux_equations.size(); i++)
|
||||
for (int i = (int) aux_equations.size()-1; i >= 0; i--)
|
||||
{
|
||||
dynamic_cast<ExprNode *>(aux_equations[i])->writeOutput(output, oMatlabStaticModel);
|
||||
output << ";" << endl;
|
||||
|
|
|
@ -121,7 +121,7 @@ SteadyStateModel::writeSteadyStateFile(const string &basename, bool ramsey_polic
|
|||
output << ", exo_)" << endl
|
||||
<< "% Steady state generated by Dynare preprocessor" << endl;
|
||||
if (!ramsey_policy)
|
||||
output << " ys_=zeros(" << symbol_table.orig_endo_nbr() << ",1);" << endl;
|
||||
output << " ys_=zeros(" << symbol_table.endo_nbr() << ",1);" << endl;
|
||||
output << " global M_" << endl;
|
||||
|
||||
for (size_t i = 0; i < recursive_order.size(); i++)
|
||||
|
|
Loading…
Reference in New Issue