mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-28 02:00:59 -06:00
Update schedule object after it is actually created..
This commit is contained in:
parent
cd1b0f808b
commit
b14df39503
@ -557,12 +557,16 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
|
||||
auto parseContext = setupParseContext(exitOnAllErrors);
|
||||
if (treatCriticalAsNonCritical) { // Continue with invalid names if parsing strictness is set to low
|
||||
parseContext->update(ParseContext::SCHEDULE_INVALID_NAME, InputErrorAction::WARN);
|
||||
schedule->treat_critical_as_non_critical(true);
|
||||
}
|
||||
readOnIORank(comm, deckFilename, parseContext.get(),
|
||||
eclipseState, schedule, udqState, actionState, wtestState,
|
||||
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);
|
||||
}
|
||||
}
|
||||
catch (const OpmInputError& input_error) {
|
||||
failureMessage = input_error.what();
|
||||
|
Loading…
Reference in New Issue
Block a user