Readability improvement

This commit is contained in:
Vegard Kippe 2024-02-22 13:03:54 +01:00
parent b14df39503
commit 45e63bd498

View File

@ -563,10 +563,9 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
summaryConfig, std::move(python), initFromRestart,
checkDeck, treatCriticalAsNonCritical, outputInterval, *errorGuard);
if (treatCriticalAsNonCritical) { // Update schedule so that re-parsing after actions use same strictness
assert(schedule);
schedule->treat_critical_as_non_critical(true);
}
// Update schedule so that re-parsing after actions use same strictness
assert(schedule);
schedule->treat_critical_as_non_critical(treatCriticalAsNonCritical);
}
catch (const OpmInputError& input_error) {
failureMessage = input_error.what();