@@ -545,6 +545,20 @@ void read_settings_xml(pugi::xml_node root)
545545 } else if (rel_max_lost_particles <= 0.0 || rel_max_lost_particles >= 1.0 ) {
546546 fatal_error (" Relative max lost particles must be between zero and one." );
547547 }
548+
549+ // Check for user value for the number of generation of the Iterated Fission
550+ // Probability (IFP) method
551+ if (check_for_node (root, " ifp_n_generation" )) {
552+ ifp_n_generation = std::stoi (get_node_value (root, " ifp_n_generation" ));
553+ if (ifp_n_generation <= 0 ) {
554+ fatal_error (" 'ifp_n_generation' must be greater than 0." );
555+ }
556+ // Avoid tallying 0 if IFP logs are not complete when active cycles start
557+ if (ifp_n_generation > n_inactive) {
558+ fatal_error (" 'ifp_n_generation' must be lower than or equal to the "
559+ " number of inactive cycles." );
560+ }
561+ }
548562 }
549563
550564 // Copy plotting random number seed if specified
@@ -1130,20 +1144,6 @@ void read_settings_xml(pugi::xml_node root)
11301144 temperature_range[1 ] = range.at (1 );
11311145 }
11321146
1133- // Check for user value for the number of generation of the Iterated Fission
1134- // Probability (IFP) method
1135- if (check_for_node (root, " ifp_n_generation" )) {
1136- ifp_n_generation = std::stoi (get_node_value (root, " ifp_n_generation" ));
1137- if (ifp_n_generation <= 0 ) {
1138- fatal_error (" 'ifp_n_generation' must be greater than 0." );
1139- }
1140- // Avoid tallying 0 if IFP logs are not complete when active cycles start
1141- if (ifp_n_generation > n_inactive) {
1142- fatal_error (" 'ifp_n_generation' must be lower than or equal to the "
1143- " number of inactive cycles." );
1144- }
1145- }
1146-
11471147 // Check for tabular_legendre options
11481148 if (check_for_node (root, " tabular_legendre" )) {
11491149 // Get pointer to tabular_legendre node
0 commit comments