Verified Commit af54c7a1 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

ensure steady_state_growth option is a parameter or a number

parent c1cf5c8d
......@@ -2634,6 +2634,10 @@ ParsingDriver::pac_model()
|| pac_steady_state_growth_rate_symb_id != pac_growth_symb_id))
error("when aux_model_name is not passed to the pac_model statement, steady_state_growth must be a parameter equal to growth");
if (pac_steady_state_growth_rate_symb_id >= 0
&& mod_file->symbol_table.getType(pac_steady_state_growth_rate_symb_id) != SymbolType::parameter)
error("pac_model: steady_state_growth accepts either a number or a parameter");
it = options_list.string_options.find("");
if (it == options_list.string_options.end())
error("You must pass the discount option to the pac_model statement.");
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