Merge branch 'ramsey_logic' into 'master'

ramsey_model: Fix error message logic

See merge request Dynare/preprocessor!52
pac-components
Sébastien Villemot 2021-09-24 14:20:34 +00:00
commit 9938cb2632
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ RamseyConstraintsStatement::RamseyConstraintsStatement(const SymbolTable &symbol
void
RamseyConstraintsStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
{
if (!mod_file_struct.ramsey_model_present || !mod_file_struct.ramsey_policy_present)
if (!mod_file_struct.ramsey_model_present && !mod_file_struct.ramsey_policy_present)
cerr << "ramsey_constraints: can only be used with ramsey_model or ramsey_policy" << endl;
}