mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
avoid deck usage on non-root processes checking for TRACERS
This commit is contained in:
parent
27246b91f4
commit
e2862a3a4d
@ -96,8 +96,14 @@ public:
|
|||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
const Opm::Deck& deck = simulator_.vanguard().deck();
|
const Opm::Deck& deck = simulator_.vanguard().deck();
|
||||||
|
const auto& comm = simulator_.gridView().comm();
|
||||||
|
|
||||||
if (!deck.hasKeyword("TRACERS"))
|
bool has;
|
||||||
|
if (comm.rank() == 0)
|
||||||
|
has = deck.hasKeyword("TRACERS");
|
||||||
|
comm.broadcast(&has, 1, 0);
|
||||||
|
|
||||||
|
if (!has)
|
||||||
return; // tracer treatment is supposed to be disabled
|
return; // tracer treatment is supposed to be disabled
|
||||||
|
|
||||||
if (!EWOMS_GET_PARAM(TypeTag, bool, EnableTracerModel)) {
|
if (!EWOMS_GET_PARAM(TypeTag, bool, EnableTracerModel)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user