mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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
|
#endif
|
||||||
if ( unknownKeyWords )
|
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
|
#if HAVE_MPI
|
||||||
MPI_Finalize();
|
MPI_Finalize();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user