Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dóra Kocsis
dynare
Commits
808dade2
Commit
808dade2
authored
Jun 15, 2012
by
Sébastien Villemot
Browse files
Fix nograph, nodisplay and graph_format for identification and dynare_sensitivity
parent
8bbc3b24
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ComputingTasks.cc
View file @
808dade2
...
...
@@ -379,6 +379,21 @@ void
DynareSensitivityStatement
::
writeOutput
(
ostream
&
output
,
const
string
&
basename
)
const
{
options_list
.
writeOutput
(
output
,
"options_gsa"
);
/* Ensure that nograph, nodisplay and graph_format are also set in top-level
options_.
\todo factorize this code between identification and dynare_sensitivity,
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
;
it
=
options_list
.
num_options
.
find
(
"nograph"
);
if
(
it
!=
options_list
.
num_options
.
end
())
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
<<
"dynare_sensitivity(options_gsa);"
<<
endl
;
}
...
...
@@ -1185,6 +1200,21 @@ void
IdentificationStatement
::
writeOutput
(
ostream
&
output
,
const
string
&
basename
)
const
{
options_list
.
writeOutput
(
output
,
"options_ident"
);
/* Ensure that nograph, nodisplay and graph_format are also set in top-level
options_.
\todo factorize this code between identification and dynare_sensitivity,
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
;
it
=
options_list
.
num_options
.
find
(
"nograph"
);
if
(
it
!=
options_list
.
num_options
.
end
())
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
<<
"dynare_identification(options_ident);"
<<
endl
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment