🐛 ramsey_policy: lift restriction that order must be ⩽ 2

This restriction no longer exists, and is actually not applied to stoch_simul
when following ramsey_model.
master
Sébastien Villemot 2023-03-29 16:05:00 +02:00
parent 419c684929
commit e9babf0242
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
1 changed files with 1 additions and 9 deletions

View File

@ -614,15 +614,7 @@ RamseyPolicyStatement::checkPass(ModFileStructure &mod_file_struct, WarningConso
Since ramsey 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 */
if (auto opt = options_list.get_if<OptionsList::NumVal>("order"))
{
int order = stoi(*opt);
if (order > 2)
{
cerr << "ERROR: ramsey_policy: order > 2 is not implemented" << endl;
exit(EXIT_FAILURE);
}
mod_file_struct.order_option = max(mod_file_struct.order_option, order + 1);
}
mod_file_struct.order_option = max(mod_file_struct.order_option, stoi(*opt));
// Fill in mod_file_struct.partial_information
if (auto opt = options_list.get_if<OptionsList::NumVal>("partial_information");