changed: special case no input deck given handling

we do not want to invoke MPI_Abort in this case
This commit is contained in:
Arne Morten Kvarving 2021-10-26 09:14:48 +02:00
parent 5a54bb0728
commit a056aa858a

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);