Notify user that we are aborting because of unused keywords.

This commit is contained in:
Markus Blatt 2019-06-21 07:36:39 +02:00
parent a598734e71
commit 35ad7a60e2

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