Preprocessor: fixes for identification and dynare_sensitivity
parent
67f29dbbd9
commit
93d08ba45e
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue