From fa6a08e8c54389280f214412defc11940f7bac71 Mon Sep 17 00:00:00 2001 From: Michel Juillard Date: Thu, 23 Jul 2015 14:25:18 +0200 Subject: [PATCH] histval: replaced initialization with NaN by zeros --- NumericalInitialization.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NumericalInitialization.cc b/NumericalInitialization.cc index 85055905..f8491d8b 100644 --- a/NumericalInitialization.cc +++ b/NumericalInitialization.cc @@ -274,7 +274,7 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini output << "%" << endl << "% HISTVAL instructions" << endl << "%" << endl - << "M_.endo_histval = zeros(M_.endo_nbr,M_.maximum_endo_lag);" << endl; + << "M_.endo_histval = zeros(M_.endo_nbr,M_.maximum_lag);" << endl; for (hist_values_t::const_iterator it = hist_values.begin(); it != hist_values.end(); it++) @@ -310,7 +310,7 @@ HistValStatement::writeOutput(ostream &output, const string &basename, bool mini int tsid = symbol_table.getTypeSpecificID(symb_id) + 1; if (type == eEndogenous) - output << "M_.endo_histval( " << tsid << ", M_.maximum_endo_lag + " << lag << ") = "; + output << "M_.endo_histval( " << tsid << ", M_.maximum_lag + " << lag << ") = "; else if (type == eExogenous) output << "oo_.exo_simul( M_.maximum_lag + " << lag << ", " << tsid << " ) = "; else if (type != eExogenousDet)