flow: do not mention unused parameters in the help message

while they do no longer appear in the help message, in the code they
are still there and can be specified and used as normal.

also, this patch makes --print-parameters=1 and --print-properties=1
work.
This commit is contained in:
Andreas Lauser
2018-06-29 13:41:54 +02:00
parent 66b749c2eb
commit d94be85a9d
2 changed files with 77 additions and 3 deletions

View File

@@ -115,7 +115,10 @@ int main(int argc, char** argv)
typedef TTAG(FlowEarlyBird) PreTypeTag;
int status = Opm::FlowMainEbos<PreTypeTag>::setupParameters_(argc, argv);
if (status != 0)
return status;
// if setupParameters_ returns a value smaller than 0, there was no error, but
// the program should abort. This is the case e.g. for the --help and the
// --print-properties parameters.
return (status >= 0)?status:0;
bool outputCout = false;
if (mpiRank == 0)