From 8d72527518523620050e819e9cd59afc76862ab9 Mon Sep 17 00:00:00 2001 From: MichelJuillard <michel.juillard@mjui.fr> Date: Sat, 16 Dec 2023 15:43:17 +0100 Subject: [PATCH] Julia: suppress check for all variables in steady_state_model --- src/ModelEquationBlock.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ModelEquationBlock.cc b/src/ModelEquationBlock.cc index b5f80421..7574fe80 100644 --- a/src/ModelEquationBlock.cc +++ b/src/ModelEquationBlock.cc @@ -147,9 +147,11 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat so_far_defined.insert(symb_ids.begin(), symb_ids.end()); } + // Don't do the check for Julia: steady state block maybe incomplete /* Check that all original endogous are defined (except the instruments of a Ramsey model, since the steady_state_block should give the steady state *conditional* to those instruments) */ + /* set<int> should_be_defined = symbol_table.getOrigEndogenous(); if (mod_file_struct.ramsey_model_present) for (const auto &s : mod_file_struct.instruments.getSymbols()) @@ -157,6 +159,7 @@ SteadyStateModel::checkPass(ModFileStructure &mod_file_struct, WarningConsolidat for (int v : should_be_defined) if (!so_far_defined.contains(v)) warnings << "WARNING: in the 'steady_state_model' block, variable '" << symbol_table.getName(v) << "' is not assigned a value" << endl; + */ } void -- GitLab