pac_expectation: accept exogenous variables for growth argument

issue#70
Houtan Bastani 2018-02-15 15:34:15 +01:00
parent 7a52ebe141
commit 97fd1324a1
1 changed files with 2 additions and 2 deletions

View File

@ -2736,8 +2736,8 @@ ParsingDriver::add_pac_expectation_growth(string *arg)
error("pac_expectation: you can only pass the growth option once");
check_symbol_existence(*arg);
SymbolType type = mod_file->symbol_table.getType(mod_file->symbol_table.getID(*arg));
if (type != eParameter && type != eEndogenous)
error("pac_expectation growth argument must either be a parameter or an endogenous variable.");
if (type != eParameter && type != eEndogenous && type != eExogenous)
error("pac_expectation growth argument must either be a parameter or an endogenous or exogenous variable.");
pac_expectation_growth = *arg;
delete arg;
}