From b53129e5a6f64e5bcf5b23fce49717851819352d Mon Sep 17 00:00:00 2001 From: MichelJuillard <michel.juillard@mjui.fr> Date: Wed, 11 Jan 2023 20:35:55 +0100 Subject: [PATCH] allow undefined symbols in steady_state_models --- src/ModelEquationBlock.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index 8b410ba0..38f37a94 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -128,6 +128,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat if (so_far_defined.contains(symb_id)) warnings << "WARNING: in the 'steady_state_model' block, variable '" << symbol_table.getName(symb_id) << "' is declared twice" << endl; + /* Don't do the check for Julia // Check that expression has no undefined symbol if (!mod_file_struct.ramsey_model_present) { @@ -142,7 +143,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat exit(EXIT_FAILURE); } } - + */ so_far_defined.insert(symb_ids.begin(), symb_ids.end()); } -- GitLab