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-bf33cf982152issue#70
parent
bf73286226
commit
c1cecba2be
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue