Fix the warning message for tracer model.

This commit is contained in:
Alf Birger Rustad 2020-10-02 08:56:49 +02:00
parent 90b2e8b8ef
commit 8ecfa1b5db

View File

@ -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
}