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
12980236
Commit
12980236
authored
Jun 19, 2012
by
Houtan Bastani
Browse files
preprocessor: require instruments option for discretionary_policy
parent
1eef328d
Changes
1
Hide whitespace changes
Inline
Side-by-side
preprocessor/ComputingTasks.cc
View file @
12980236
...
...
@@ -224,6 +224,12 @@ DiscretionaryPolicyStatement::checkPass(ModFileStructure &mod_file_struct, Warni
{
mod_file_struct
.
discretionary_policy_present
=
true
;
if
(
options_list
.
symbol_list_options
.
find
(
"instruments"
)
==
options_list
.
symbol_list_options
.
end
())
{
cerr
<<
"ERROR: discretionary_policy: the instruments option is required."
<<
endl
;
exit
(
EXIT_FAILURE
);
}
/* Fill in option_order of mod_file_struct
Since discretionary policy needs one further order of derivation (for example, for 1st order
approximation, it needs 2nd derivatives), we add 1 to the order declared by user */
...
...
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