Skip to content
Snippets Groups Projects
Commit b53129e5 authored by MichelJuillard's avatar MichelJuillard
Browse files

allow undefined symbols in steady_state_models

parent b2b78970
Branches
Tags
No related merge requests found
...@@ -128,6 +128,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat ...@@ -128,6 +128,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat
if (so_far_defined.contains(symb_id)) 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; 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 // Check that expression has no undefined symbol
if (!mod_file_struct.ramsey_model_present) if (!mod_file_struct.ramsey_model_present)
{ {
...@@ -142,7 +143,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat ...@@ -142,7 +143,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
} }
*/
so_far_defined.insert(symb_ids.begin(), symb_ids.end()); so_far_defined.insert(symb_ids.begin(), symb_ids.end());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment