Commit 203c6582 authored by houtanb's avatar houtanb

svar: allow for two options to be passed instead of only three.

git-svn-id: https://www.dynare.org/svn/dynare/trunk@3218 ac1d8469-bf42-47a9-8791-bf33cf982152
parent a1a73b3a
......@@ -1242,8 +1242,5 @@ SvarStatement::writeOutput(ostream &output, const string &basename) const
else
output << ".equations = " << it0->second << ";" << endl;
else
{
cerr << "SvarStatement::writeOutput() Should not arrive here (3). Please report this to the Dynare Team." << endl;
exit(EXIT_FAILURE);
}
output << ".equations = 'ALL';" << endl;
}
......@@ -1222,9 +1222,7 @@ ParsingDriver::svar()
error("The value passed to the chain option must be greater than zero.");
it0 = options_list.num_options.find("ms.equations");
if (it0 == options_list.num_options.end())
error("A chain option must be passed to the svar statement.");
else
if (it0 != options_list.num_options.end())
{
string strNextNumber;
for (string::const_iterator it=it0->second.begin(); it<it0->second.end(); it++)
......
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