Commit 71be51c4 authored by Houtan Bastani's avatar Houtan Bastani

pac_growth: ensure symbol has been declared

parent d922ae8f
Pipeline #665 passed with stage
in 1 minute and 23 seconds
......@@ -2636,6 +2636,8 @@ ParsingDriver::pac_model()
void
ParsingDriver::set_pac_growth(const string &name, int lag)
{
if (!mod_file->symbol_table.exists(name))
error("Unknown symbol used in pac_growth option: " + name + "\n");
pac_growth_symb_id = mod_file->symbol_table.getID(name);
pac_growth_lag = -lag;
}
......
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