mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
Merge pull request #1904 from blattms/abort-with-notification
Notify user that we are aborting because of unused keywords.
This commit is contained in:
commit
43503cf7c6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user