Allow `dynasave` and `dynatype` to support exogenous variables in their var_list

issue dynare#1691
parent 54f73e08
Pipeline #2781 passed with stages
in 3 minutes and 28 seconds
......@@ -2153,7 +2153,8 @@ DynaSaveStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolida
{
try
{
const vector<SymbolType> valid_symbol_list_types { SymbolType::endogenous };
const vector<SymbolType> valid_symbol_list_types { SymbolType::endogenous,
SymbolType::exogenous };
symbol_list.checkPass(warnings, valid_symbol_list_types);
}
catch (SymbolList::SymbolListException &e)
......@@ -2196,7 +2197,8 @@ DynaTypeStatement::checkPass(ModFileStructure &mod_file_struct, WarningConsolida
{
try
{
const vector<SymbolType> valid_symbol_list_types { SymbolType::endogenous };
const vector<SymbolType> valid_symbol_list_types { SymbolType::endogenous,
SymbolType::exogenous };
symbol_list.checkPass(warnings, valid_symbol_list_types);
}
catch (SymbolList::SymbolListException &e)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment