Merge pull request #3637 from akva2/fix_mpiabort_no_input_case

changed: special case no input deck given handling
This commit is contained in:
Atgeirr Flø Rasmussen 2021-10-29 15:35:35 +02:00 committed by GitHub
commit fe8df97266
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -423,6 +423,14 @@ namespace Opm
deckFilename = EWOMS_GET_PARAM(PreTypeTag, std::string, EclDeckFileName);
}
if (deckFilename.empty()) {
if (mpiRank == 0) {
std::cerr << "No input case given. Try '--help' for a usage description.\n";
}
exitCode = EXIT_FAILURE;
return false;
}
using PreVanguard = GetPropType<PreTypeTag, Properties::Vanguard>;
try {
deckFilename = PreVanguard::canonicalDeckPath(deckFilename);