Commit 6c7d7f5d authored by Houtan Bastani's avatar Houtan Bastani

don’t create file if trend_component_model/var_model statement not present

parent 913bc2f8
......@@ -262,6 +262,9 @@ TrendComponentModelTable::getOrigDiffVar(const string &name_arg) const
void
TrendComponentModelTable::writeOutput(const string &basename, ostream &output) const
{
if (names.empty())
return;
string filename = "+" + basename + "/trend_component_ar_ec.m";
ofstream ar_ec_output;
ar_ec_output.open(filename, ios::out | ios::binary);
......@@ -426,6 +429,9 @@ VarModelTable::getSymbolListAndOrder() const
void
VarModelTable::writeOutput(const string &basename, ostream &output) const
{
if (names.empty())
return;
string filename = "+" + basename + "/var_ar.m";
ofstream ar_output;
ar_output.open(filename, ios::out | ios::binary);
......
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