Notify user that we are aborting because of unused keywords.

This commit is contained in:
Markus Blatt committed 2019-06-21 13:11:21 +02:00
1 parent a598734e71
commit 35ad7a60e2
1 file changed
+14
+14
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