From f1f7ba022a80ba2eb4ca286b1c568c285e4fa8ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien.villemot@ens.fr>
Date: Fri, 15 Jun 2012 15:35:00 +0200
Subject: [PATCH] Preprocessor: fixes for identification and dynare_sensitivity
 (cherry picked from commit 354efdc8037b47559bff0cb4e3d381a10eed8f6d)

---
 preprocessor/ComputingTasks.cc | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/preprocessor/ComputingTasks.cc b/preprocessor/ComputingTasks.cc
index 3ec386ae6a..649745e1a1 100644
--- a/preprocessor/ComputingTasks.cc
+++ b/preprocessor/ComputingTasks.cc
@@ -386,13 +386,13 @@ DynareSensitivityStatement::writeOutput(ostream &output, const string &basename)
      and provide a generic mechanism for this situation (maybe using regexps) */
   OptionsList::num_options_t::const_iterator it = options_list.num_options.find("nodisplay");
   if (it != options_list.num_options.end())
-    output << "options_.nodisplay = " << it->second << endl;
+    output << "options_.nodisplay = " << it->second << ";" << endl;
   it = options_list.num_options.find("nograph");
   if (it != options_list.num_options.end())
-    output << "options_.nograph = " << it->second << endl;
+    output << "options_.nograph = " << it->second << ";" << endl;
   OptionsList::string_options_t::const_iterator it2 = options_list.string_options.find("graph_format");
   if (it2 != options_list.string_options.end())
-    output << "options_.graph_format = " << it2->second << endl;
+    output << "options_.graph_format = '" << it2->second << "';" << endl;
   
   output << "dynare_sensitivity(options_gsa);" << endl;
 }
@@ -1207,13 +1207,13 @@ IdentificationStatement::writeOutput(ostream &output, const string &basename) co
      and provide a generic mechanism for this situation (maybe using regexps) */
   OptionsList::num_options_t::const_iterator it = options_list.num_options.find("nodisplay");
   if (it != options_list.num_options.end())
-    output << "options_.nodisplay = " << it->second << endl;
+    output << "options_.nodisplay = " << it->second << ";" << endl;
   it = options_list.num_options.find("nograph");
   if (it != options_list.num_options.end())
-    output << "options_.nograph = " << it->second << endl;
+    output << "options_.nograph = " << it->second << ";" << endl;
   OptionsList::string_options_t::const_iterator it2 = options_list.string_options.find("graph_format");
   if (it2 != options_list.string_options.end())
-    output << "options_.graph_format = " << it2->second << endl;
+    output << "options_.graph_format = '" << it2->second << "';" << endl;
 
   output << "dynare_identification(options_ident);" << endl;
 }
-- 
GitLab