mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: special case no input deck given handling
we do not want to invoke MPI_Abort in this case
This commit is contained in:
parent
5a54bb0728
commit
a056aa858a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user