Merge pull request #1904 from blattms/abort-with-notification

Notify user that we are aborting because of unused keywords.
This commit is contained in:
Atgeirr Flø Rasmussen 2019-06-25 09:45:27 +02:00 committed by GitHub
commit 43503cf7c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -234,6 +234,20 @@ namespace Opm
#endif
if ( unknownKeyWords )
{
if ( output_cout_ )
{
std::string msg = "Aborting simulation due unknown "
"parameters. Please query \"flow --help\" for "
"supported command line parameters.";
if (OpmLog::hasBackend("STREAMLOG"))
{
OpmLog::error(msg);
}
else {
std::cerr << msg << std::endl;
}
}
#if HAVE_MPI
MPI_Finalize();
#endif