Commit f1f7ba02 authored by Sébastien Villemot's avatar Sébastien Villemot

Preprocessor: fixes for identification and dynare_sensitivity

(cherry picked from commit 354efdc8)
parent 40a1b3af
......@@ -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;
}
......
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