mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-09-05 04:40:19 -05:00
Fix the warning message for tracer model.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user