Merge branch 'ramsey_logic' into 'master'
ramsey_model: Fix error message logic See merge request Dynare/preprocessor!52pac-components
commit
9938cb2632
|
@ -668,7 +668,7 @@ RamseyConstraintsStatement::RamseyConstraintsStatement(const SymbolTable &symbol
|
||||||
void
|
void
|
||||||
RamseyConstraintsStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolidation &warnings)
|
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;
|
cerr << "ramsey_constraints: can only be used with ramsey_model or ramsey_policy" << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue