Skip to content
Snippets Groups Projects
Verified Commit a091c26c authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Drop M_.exo_det_length

This information can be computed from MATLAB/Octave. This will facilitate the
introduction of dates in shock sequences.
parent b2b2801b
Branches
No related tags found
No related merge requests found
Pipeline #11013 passed
...@@ -37,8 +37,6 @@ AbstractShocksStatement::AbstractShocksStatement(bool overwrite_arg, ShockType t ...@@ -37,8 +37,6 @@ AbstractShocksStatement::AbstractShocksStatement(bool overwrite_arg, ShockType t
void void
AbstractShocksStatement::writeDetShocks(ostream& output) const AbstractShocksStatement::writeDetShocks(ostream& output) const
{ {
int exo_det_length = 0;
for (const auto& [id, shock_vec] : det_shocks) for (const auto& [id, shock_vec] : det_shocks)
for (bool exo_det = (symbol_table.getType(id) == SymbolType::exogenousDet); for (bool exo_det = (symbol_table.getType(id) == SymbolType::exogenousDet);
const auto& [period1, period2, value] : shock_vec) const auto& [period1, period2, value] : shock_vec)
...@@ -49,11 +47,7 @@ AbstractShocksStatement::writeDetShocks(ostream& output) const ...@@ -49,11 +47,7 @@ AbstractShocksStatement::writeDetShocks(ostream& output) const
<< ",'periods'," << period1 << ":" << period2 << ",'value',"; << ",'periods'," << period1 << ":" << period2 << ",'value',";
value->writeOutput(output); value->writeOutput(output);
output << ") ];" << endl; output << ") ];" << endl;
if (exo_det && period2 > exo_det_length)
exo_det_length = period2;
} }
output << "M_.exo_det_length = " << exo_det_length << ";\n";
} }
void void
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment