mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -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/parser/eclipse/EclipseState/Tables/TracerVdTable.hpp>
|
||||||
|
|
||||||
#include <opm/models/blackoil/blackoilmodel.hh>
|
#include <opm/models/blackoil/blackoilmodel.hh>
|
||||||
|
#include <opm/common/OpmLog/OpmLog.hpp>
|
||||||
|
|
||||||
#include <dune/istl/operators.hh>
|
#include <dune/istl/operators.hh>
|
||||||
#include <dune/istl/solvers.hh>
|
#include <dune/istl/solvers.hh>
|
||||||
@ -106,9 +107,10 @@ public:
|
|||||||
|
|
||||||
if (!EWOMS_GET_PARAM(TypeTag, bool, EnableTracerModel)) {
|
if (!EWOMS_GET_PARAM(TypeTag, bool, EnableTracerModel)) {
|
||||||
if (simulator_.gridView().comm().rank() == 0) {
|
if (simulator_.gridView().comm().rank() == 0) {
|
||||||
std::cout << "Warning: Tracer model is disabled but the deck contains the TRACERS keyword\n"
|
OpmLog::warning("Warning: Keyword TRACERS has only experimental support, and is hence ignored.\n"
|
||||||
<< "The tracer model must be explictly activated using --enable-tracer-model=true\n"
|
+ std::string("The experimental tracer model can still be used, but must be set explicitely.\n")
|
||||||
<< std::flush;
|
+ 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
|
return; // Tracer transport must be enabled by the user
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user