Commit a1a73b3a authored by houtanb's avatar houtanb

fixed svar so when the equations option is passed a vec_int it outputs a column vector.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3217 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 2f7c327b
......@@ -1220,7 +1220,6 @@ SvarStatement::writeOutput(ostream &output, const string &basename) const
exit(EXIT_FAILURE);
}
it0 = options_list.string_options.find("ms.coefficients");
it1 = options_list.string_options.find("ms.variances");
it2 = options_list.string_options.find("ms.constants");
......@@ -1236,10 +1235,12 @@ SvarStatement::writeOutput(ostream &output, const string &basename) const
exit(EXIT_FAILURE);
}
it0 = options_list.num_options.find("ms.equations");
if (it0 != options_list.num_options.end())
output << ".equations = " << it0->second << ";" << endl;
if (it0->second.find("[")!=string::npos)
output << ".equations = " << it0->second << "';" << endl;
else
output << ".equations = " << it0->second << ";" << endl;
else
{
cerr << "SvarStatement::writeOutput() Should not arrive here (3). Please report this to the Dynare Team." << 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