Fix bug with “graph_format” option of “identification” and “dynare_sensitivity”

The local value of option was not copied to the top-level “options_” structure,
as it is done for “nograph” and “nodisplay”.
master
Sébastien Villemot 2022-09-17 18:43:37 +02:00
parent 1088cc4242
commit 3f674c1af9
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 6 additions and 6 deletions

View File

@ -1158,9 +1158,9 @@ DynareSensitivityStatement::writeOutput(ostream &output, [[maybe_unused]] const
if (auto it = options_list.num_options.find("nograph");
it != options_list.num_options.end())
output << "options_.nograph = " << it->second << ";" << endl;
if (auto it = options_list.string_options.find("graph_format");
it != options_list.string_options.end())
output << "options_.graph_format = '" << it->second << "';" << endl;
if (auto it = options_list.symbol_list_options.find("graph_format");
it != options_list.symbol_list_options.end())
it->second.writeOutput("options_.graph_format", output);
output << "dynare_sensitivity(options_gsa);" << endl;
}
@ -2969,9 +2969,9 @@ IdentificationStatement::writeOutput(ostream &output, [[maybe_unused]] const str
if (auto it = options_list.num_options.find("nograph");
it != options_list.num_options.end())
output << "options_.nograph = " << it->second << ";" << endl;
if (auto it = options_list.string_options.find("graph_format");
it != options_list.string_options.end())
output << "options_.graph_format = '" << it->second << "';" << endl;
if (auto it = options_list.symbol_list_options.find("graph_format");
it != options_list.symbol_list_options.end())
it->second.writeOutput("options_.graph_format", output);
output << "dynare_identification(options_ident);" << endl;
}