Commit 12980236 authored by Houtan Bastani's avatar Houtan Bastani
Browse files

preprocessor: require instruments option for discretionary_policy

parent 1eef328d
......@@ -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;
/* 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 */
Supports Markdown
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