Commit f4d669f3 authored by michel's avatar michel
Browse files

v4 parser: write local parameters before temporary terms in ModelTree


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1196 ac1d8469-bf42-47a9-8791-bf33cf982152
parent abd3b965
......@@ -824,10 +824,10 @@ ModelTree::writeStaticModel(ostream &StaticOutput) const
ostringstream hessian_output;
ostringstream lsymetric; // For symmetric elements in hessian
writeTemporaryTerms(model_output, false);
writeLocalParameters(model_output, false);
writeTemporaryTerms(model_output, false);
writeModelEquations(model_output, false);
// Write Jacobian w.r. to endogenous only
......@@ -1511,12 +1511,10 @@ ModelTree::writeDynamicModel(ostream &DynamicOutput, Model_Block *ModelBlock) co
ostringstream hessian_output; // Used for storing Hessian equations
ostringstream third_derivatives_output;
if (offset != 2)
writeTemporaryTerms(model_output, true);
writeLocalParameters(model_output, true);
if (offset != 2)
writeTemporaryTerms(model_output, true);
writeModelEquations(model_output, true);
else
writeModelEquationsOrdered(model_output, true,ModelBlock);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment