bug fix: clear symbol list and options list after call to `DetCondForecast` constructor

issue #39
parent 9d3be05a
...@@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan) ...@@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan)
symbol_list.clear(); symbol_list.clear();
symbol_list.addSymbol(plan); symbol_list.addSymbol(plan);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition)); mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
} }
void void
...@@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const ...@@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const
symbol_list.addSymbol(plan); symbol_list.addSymbol(plan);
symbol_list.addSymbol(dset); symbol_list.addSymbol(dset);
mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition)); mod_file->addStatement(make_unique<DetCondForecast>(symbol_list, options_list, mod_file->linear_decomposition));
symbol_list.clear();
options_list.clear();
} }
void void
......
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