mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
Fix the warning message for tracer model.
This commit is contained in:
parent
90b2e8b8ef
commit
8ecfa1b5db
@ -31,6 +31,7 @@
|
||||
#include <opm/parser/eclipse/EclipseState/Tables/TracerVdTable.hpp>
|
||||
|
||||
#include <opm/models/blackoil/blackoilmodel.hh>
|
||||
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||
|
||||
#include <dune/istl/operators.hh>
|
||||
#include <dune/istl/solvers.hh>
|
||||
@ -106,9 +107,10 @@ public:
|
||||
|
||||
if (!EWOMS_GET_PARAM(TypeTag, bool, EnableTracerModel)) {
|
||||
if (simulator_.gridView().comm().rank() == 0) {
|
||||
std::cout << "Warning: Tracer model is disabled but the deck contains the TRACERS keyword\n"
|
||||
<< "The tracer model must be explictly activated using --enable-tracer-model=true\n"
|
||||
<< std::flush;
|
||||
OpmLog::warning("Warning: Keyword TRACERS has only experimental support, and is hence ignored.\n"
|
||||
+ std::string("The experimental tracer model can still be used, but must be set explicitely.\n")
|
||||
+ std::string("To use tracers, set the command line option: --enable-tracer-model=true\n")
|
||||
+ "\n");
|
||||
}
|
||||
return; // Tracer transport must be enabled by the user
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user