Merge pull request #1914 from atgeirr/fixup-unknown-params

Fix typo, indentation and return in unknown-parameter situation.
This commit is contained in:
Kai Bao 2019-06-25 13:25:11 +02:00 committed by GitHub
commit f6ea98a0cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -236,7 +236,7 @@ namespace Opm
{
if ( output_cout_ )
{
std::string msg = "Aborting simulation due unknown "
std::string msg = "Aborting simulation due to unknown "
"parameters. Please query \"flow --help\" for "
"supported command line parameters.";
if (OpmLog::hasBackend("STREAMLOG"))
@ -244,14 +244,14 @@ namespace Opm
OpmLog::error(msg);
}
else {
std::cerr << msg << std::endl;
std::cerr << msg << std::endl;
}
}
#if HAVE_MPI
MPI_Finalize();
#endif
exit(EXIT_FAILURE);
return EXIT_FAILURE;
}
runDiagnostics();
createSimulator();