Set SCHEDULE_INVALID_NAME to warning with --parsing-strictness=low

This commit is contained in:
Vegard Kippe 2023-11-10 11:48:18 +01:00
parent 16c8184e3f
commit 194bf9d6af

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,