Skip to content
Snippets Groups Projects
Commit 97fd1324 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

pac_expectation: accept exogenous variables for growth argument

parent 7a52ebe1
No related branches found
No related tags found
No related merge requests found
...@@ -2736,8 +2736,8 @@ ParsingDriver::add_pac_expectation_growth(string *arg) ...@@ -2736,8 +2736,8 @@ ParsingDriver::add_pac_expectation_growth(string *arg)
error("pac_expectation: you can only pass the growth option once"); error("pac_expectation: you can only pass the growth option once");
check_symbol_existence(*arg); check_symbol_existence(*arg);
SymbolType type = mod_file->symbol_table.getType(mod_file->symbol_table.getID(*arg)); SymbolType type = mod_file->symbol_table.getType(mod_file->symbol_table.getID(*arg));
if (type != eParameter && type != eEndogenous) if (type != eParameter && type != eEndogenous && type != eExogenous)
error("pac_expectation growth argument must either be a parameter or an endogenous variable."); error("pac_expectation growth argument must either be a parameter or an endogenous or exogenous variable.");
pac_expectation_growth = *arg; pac_expectation_growth = *arg;
delete arg; delete arg;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment