From a091c26ced0fba215851485e824502230fccb73f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org> Date: Tue, 5 Nov 2024 18:08:40 +0100 Subject: [PATCH] Drop M_.exo_det_length This information can be computed from MATLAB/Octave. This will facilitate the introduction of dates in shock sequences. --- src/Shocks.cc | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/Shocks.cc b/src/Shocks.cc index 963dfd33..1bb84966 100644 --- a/src/Shocks.cc +++ b/src/Shocks.cc @@ -37,8 +37,6 @@ AbstractShocksStatement::AbstractShocksStatement(bool overwrite_arg, ShockType t void AbstractShocksStatement::writeDetShocks(ostream& output) const { - int exo_det_length = 0; - for (const auto& [id, shock_vec] : det_shocks) for (bool exo_det = (symbol_table.getType(id) == SymbolType::exogenousDet); const auto& [period1, period2, value] : shock_vec) @@ -49,11 +47,7 @@ AbstractShocksStatement::writeDetShocks(ostream& output) const << ",'periods'," << period1 << ":" << period2 << ",'value',"; value->writeOutput(output); output << ") ];" << endl; - - if (exo_det && period2 > exo_det_length) - exo_det_length = period2; } - output << "M_.exo_det_length = " << exo_det_length << ";\n"; } void -- GitLab