Skip to content
Snippets Groups Projects
Commit 2ea7d40f authored by MichelJuillard's avatar MichelJuillard
Browse files

histval: use now the same treatment for exogenous and exogenous det

variables as for endogenous ones. Closes issue #617.
parent 22ac2f4f
No related branches found
No related tags found
No related merge requests found
...@@ -274,7 +274,9 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini ...@@ -274,7 +274,9 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini
output << "%" << endl output << "%" << endl
<< "% HISTVAL instructions" << endl << "% HISTVAL instructions" << endl
<< "%" << endl << "%" << endl
<< "M_.endo_histval = zeros(M_.endo_nbr,M_.maximum_lag);" << endl; << "M_.endo_histval = zeros(M_.endo_nbr,M_.maximum_lag);" << endl
<< "M_.exo_histval = zeros(M_.exo_nbr,M_.maximum_lag);" << endl
<< "M_.exo_det_histval = zeros(M_.exo_det_nbr,M_.maximum_lag);" << endl;
for (hist_values_t::const_iterator it = hist_values.begin(); for (hist_values_t::const_iterator it = hist_values.begin();
it != hist_values.end(); it++) it != hist_values.end(); it++)
...@@ -312,9 +314,9 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini ...@@ -312,9 +314,9 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini
if (type == eEndogenous) if (type == eEndogenous)
output << "M_.endo_histval( " << tsid << ", M_.maximum_lag + " << lag << ") = "; output << "M_.endo_histval( " << tsid << ", M_.maximum_lag + " << lag << ") = ";
else if (type == eExogenous) else if (type == eExogenous)
output << "oo_.exo_simul( M_.maximum_lag + " << lag << ", " << tsid << " ) = "; output << "M_.exo_histval( " << tsid << ", M_.maximum_lag + " << lag << ") = ";
else if (type != eExogenousDet) else if (type == eExogenousDet)
output << "oo_.exo_det_simul( M_.maximum_lag + " << lag << ", " << tsid << " ) = "; output << "M_.exo_det_histval( " << tsid << ", M_.maximum_lag + " << lag << ") = ";
expression->writeOutput(output); expression->writeOutput(output);
output << ";" << endl; output << ";" << endl;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment