From 203c6582ba8db8c0fd60c862d67c7781d26acb21 Mon Sep 17 00:00:00 2001
From: houtanb <houtanb@ac1d8469-bf42-47a9-8791-bf33cf982152>
Date: Wed, 9 Dec 2009 16:32:30 +0000
Subject: [PATCH] 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
---
 preprocessor/ComputingTasks.cc | 5 +----
 preprocessor/ParsingDriver.cc  | 4 +---
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc
index da1aa46162..a5c6ffa779 100644
--- a/preprocessor/ComputingTasks.cc
+++ b/preprocessor/ComputingTasks.cc
@@ -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;
 }
diff --git a/preprocessor/ParsingDriver.cc b/preprocessor/ParsingDriver.cc
index ebcbc65f15..d379ec572c 100644
--- a/preprocessor/ParsingDriver.cc
+++ b/preprocessor/ParsingDriver.cc
@@ -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++)
-- 
GitLab