Commit 8ee3650a authored by michel's avatar michel
Browse files

v3+4 parser: reverted wrong correction to histval a few months ago

git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@1251 ac1d8469-bf42-47a9-8791-bf33cf982152
parent a57ca32c
No preview for this file type
......@@ -123,11 +123,11 @@ HistValStatement::writeOutput(ostream &output, const string &basename) const
int id = symbol_table.getID(name) + 1;
if (type == eEndogenous)
output << "oo_.endo_simul( " << id << ", M_.maximum_lag + " << lag + 1 << ") = ";
output << "oo_.endo_simul( " << id << ", M_.maximum_lag + " << lag << ") = ";
else if (type == eExogenous)
output << "oo_.exo_simul( M_.maximum_lag + " << lag + 1 << ", " << id << " ) = ";
output << "oo_.exo_simul( M_.maximum_lag + " << lag << ", " << id << " ) = ";
else if (type != eExogenousDet)
output << "oo_.exo_det_simul( M_.maximum_lag + " << lag + 1 << ", " << id << " ) = ";
output << "oo_.exo_det_simul( M_.maximum_lag + " << lag << ", " << id << " ) = ";
expression->writeOutput(output);
output << ";" << endl;
......
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