From a1a73b3a17223ee925e721dba5247feb08f467e2 Mon Sep 17 00:00:00 2001 From: houtanb <houtanb@ac1d8469-bf42-47a9-8791-bf33cf982152> Date: Wed, 9 Dec 2009 16:17:12 +0000 Subject: [PATCH] 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 --- preprocessor/ComputingTasks.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc index acdd5a9217..da1aa46162 100644 --- a/preprocessor/ComputingTasks.cc +++ b/preprocessor/ComputingTasks.cc @@ -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; -- GitLab