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
issue#70
houtanb 2009-12-09 16:32:30 +00:00
parent bf73286226
commit c1cecba2be
2 changed files with 2 additions and 7 deletions

View File

@ -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;
}

View File

@ -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++)