Commit 84d57393 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Return empty list of names in models without parameters or exogenous variables.

parent bf89cedd
Pipeline #1187 passed with stage
in 1 minute and 35 seconds
......@@ -248,6 +248,12 @@ SymbolTable::writeOutput(ostream &output) const noexcept(false)
output << "M_ = set_exogenous_variables_for_simulation(M_);" << endl;
}
}
else
{
output << "M_.exo_names = {};" << endl;
output << "M_.exo_names_tex = {};" << endl;
output << "M_.exo_names_long = {};" << endl;
}
if (exo_det_nbr() > 0)
{
......@@ -339,6 +345,12 @@ SymbolTable::writeOutput(ostream &output) const noexcept(false)
output << "};" << endl;
}
}
else
{
output << "M_.param_names = {};" << endl;
output << "M_.param_names_tex = {};" << endl;
output << "M_.param_names_long = {};" << endl;
}
output << "M_.exo_det_nbr = " << exo_det_nbr() << ";" << endl
<< "M_.exo_nbr = " << exo_nbr() << ";" << endl
......
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