Commit fef65c8c authored by sebastien's avatar sebastien
Browse files

trunk preprocessor: fail if order > 1 given for ramsey_policy


git-svn-id: https://www.dynare.org/svn/dynare/dynare_v4@2236 ac1d8469-bf42-47a9-8791-bf33cf982152
parent 856c0b53
......@@ -207,7 +207,15 @@ RamseyPolicyStatement::checkPass(ModFileStructure &mod_file_struct)
approximation, it needs 2nd derivatives), we add 1 to the order declared by user */
OptionsList::num_options_type::const_iterator it = options_list.num_options.find("order");
if (it != options_list.num_options.end())
mod_file_struct.order_option = max(mod_file_struct.order_option,atoi(it->second.c_str()) + 1);
{
int order = atoi(it->second.c_str());
if (order > 1)
{
cerr << "ERROR: ramsey_policy: order > 1 is not yet implemented" << endl;
exit(EXIT_FAILURE);
}
mod_file_struct.order_option = max(mod_file_struct.order_option, order + 1);
}
}
void
......
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