Merge pull request #4905 from vkip/allow_nowellmatch_with_lowstrictness

If parsing strictness is set to 'low', proceed (with warning) if no matching wells found
This commit is contained in:
Atgeirr Flø Rasmussen 2023-11-13 10:56:54 +01:00 committed by GitHub
commit cd5ba003d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -527,6 +527,9 @@ void Opm::readDeck(Opm::Parallel::Communication comm,
const bool treatCriticalAsNonCritical = (parsingStrictness == "low");
try {
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);
}
readOnIORank(comm, deckFilename, parseContext.get(),
eclipseState, schedule, udqState, actionState, wtestState,
summaryConfig, std::move(python), initFromRestart,