mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: avoid deck usage on non-root processes setting up gravity
this is achieved by using the InitConfig member from EclipseState instead
This commit is contained in:
parent
8b4c5c81cb
commit
7f9f65811f
@ -666,10 +666,9 @@ public:
|
|||||||
// disables gravity, else the standard value of the gravity constant at sea level
|
// disables gravity, else the standard value of the gravity constant at sea level
|
||||||
// on earth is used
|
// on earth is used
|
||||||
this->gravity_ = 0.0;
|
this->gravity_ = 0.0;
|
||||||
const auto& deck = simulator.vanguard().deck();
|
|
||||||
if (EWOMS_GET_PARAM(TypeTag, bool, EnableGravity))
|
if (EWOMS_GET_PARAM(TypeTag, bool, EnableGravity))
|
||||||
this->gravity_[dim - 1] = 9.80665;
|
this->gravity_[dim - 1] = 9.80665;
|
||||||
if (deck.hasKeyword("NOGRAV"))
|
if (!eclState.getInitConfig().hasGravity())
|
||||||
this->gravity_[dim - 1] = 0.0;
|
this->gravity_[dim - 1] = 0.0;
|
||||||
|
|
||||||
if (enableTuning_) {
|
if (enableTuning_) {
|
||||||
|
Loading…
Reference in New Issue
Block a user