mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-27 09:40:59 -06:00
Merge pull request #3637 from akva2/fix_mpiabort_no_input_case
changed: special case no input deck given handling
This commit is contained in:
commit
fe8df97266
@ -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