Commit 1918a56a authored by Houtan Bastani's avatar Houtan Bastani

fix bug in 539fddc9

parent 539fddc9
......@@ -868,6 +868,7 @@ ModFile::writeOutputFiles(const string &basename, bool clear_all, bool clear_glo
symbol_table.writeOutput(mOutputFile);
var_model_table.writeOutput(mOutputFile);
trend_component_model_table.writeOutput(mOutputFile);
// Initialize M_.Sigma_e, M_.Correlation_matrix, M_.H, and M_.Correlation_matrix_ME
......
......@@ -334,7 +334,7 @@ VarModelTable::writeOutput(ostream &output) const
for (const auto &name : names)
{
output << "M_.var." << name << ".model_name = '" << name << "';" << endl;
if (!symbol_list_and_order.empty())
if (!symbol_list_and_order.at(name).first.empty())
{
symbol_list_and_order.at(name).first.writeOutput("M_.var." + name + ".var_list_", output);
output << "M_.var." << name << ".order = "
......
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