From 0cd59dbcf80a456121d945876e9ab3b489ead330 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Fri, 20 Dec 2019 11:14:04 +0100 Subject: [PATCH] bug fix: clear symbol list and options list after call to `DetCondForecast` constructor issue #39 --- src/ParsingDriver.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ParsingDriver.cc b/src/ParsingDriver.cc index e80c146d..b7db2f03 100644 --- a/src/ParsingDriver.cc +++ b/src/ParsingDriver.cc @@ -2452,6 +2452,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string & plan) symbol_list.clear(); symbol_list.addSymbol(plan); mod_file->addStatement(make_unique(symbol_list, options_list, mod_file->linear_decomposition)); + symbol_list.clear(); + options_list.clear(); } void @@ -2461,6 +2463,8 @@ ParsingDriver::det_cond_forecast_linear_decomposition(const string &plan, const symbol_list.addSymbol(plan); symbol_list.addSymbol(dset); mod_file->addStatement(make_unique(symbol_list, options_list, mod_file->linear_decomposition)); + symbol_list.clear(); + options_list.clear(); } void