Use booleans for “exo_det” and “multiplicative” fields of M_.det_shocks

fix-tolerance-parameters
Sébastien Villemot 2022-04-26 11:32:07 +02:00
parent 8e3590ee71
commit e47ea565b9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright © 2003-2021 Dynare Team
* Copyright © 2003-2022 Dynare Team
*
* This file is part of Dynare.
*
@ -47,9 +47,9 @@ AbstractShocksStatement::writeDetShocks(ostream &output) const
for (const auto &[period1, period2, value] : shock_vec)
{
output << "M_.det_shocks = [ M_.det_shocks;" << endl
<< "struct('exo_det'," << static_cast<int>(exo_det)
<< "struct('exo_det'," << (exo_det ? "true" : "false")
<< ",'exo_id'," << symbol_table.getTypeSpecificID(id)+1
<< ",'multiplicative'," << static_cast<int>(mshocks)
<< ",'multiplicative'," << (mshocks ? "true" : "false")
<< ",'periods'," << period1 << ":" << period2
<< ",'value',";
value->writeOutput(output);