eclbasevanguard: pass parameters to createParseContext

to avoid typetag dependence in the code
This commit is contained in:
Arne Morten Kvarving committed 2021-05-11 09:15:11 +02:00
1 parent 86bc095e3a
commit dbf834518e
2 files changed
+9 -5

No files matched your search

+3 -1
View File
@@ -83,7 +83,9 @@ std::unique_ptr<ParseContext> ebosBlackOilCreateParseContext(int argc, char** ar
/*doRegistration=*/true,
/*allowUnused=*/true,
/*handleHelp=*/false);
std::unique_ptr<ParseContext> result = Vanguard::createParseContext();
const std::string ignoredKeywords = EWOMS_GET_PARAM(ProblemTypeTag, std::string, IgnoreKeywords);
bool eclStrictParsing = EWOMS_GET_PARAM(ProblemTypeTag, bool, EclStrictParsing);
std::unique_ptr<ParseContext> result = Vanguard::createParseContext(ignoredKeywords, eclStrictParsing);
Parameters::reset<ProblemTypeTag>();
return result;