From 87870eaae8ab7da888c27e7ce5a51bc888bd76ef Mon Sep 17 00:00:00 2001 From: Houtan Bastani <houtan@dynare.org> Date: Wed, 18 Dec 2019 10:44:56 +0100 Subject: [PATCH] Epilogue: remove +1 issue #36 --- src/ModelEquationBlock.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index 6e3adece..720b37ba 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -448,7 +448,7 @@ Epilogue::writeDynamicEpilogueFile(const string & basename) const output << ", "; output << "'" << symbol_table.getName(*it1) << "'"; } - output << "}) + " << max_lag << " + 1;" << endl + output << "}) + " << max_lag << ";" << endl << "if ~ds.exist('" << symbol_table.getName(symb_id) << "')" << endl << " ds = [ds dseries(NaN(ds.nobs,1), ds.firstdate, '" << symbol_table.getName(symb_id)<< "')];" << endl << "end" << endl -- GitLab