mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-20 11:48:25 -06:00
use the same value as opm-{core,autodiff} for the gravity constant
also, make setting this vector more bullet-proof.
This commit is contained in:
parent
4f4e25c25f
commit
bac1a6990d
@ -262,14 +262,13 @@ public:
|
||||
|
||||
auto& simulator = this->simulator();
|
||||
|
||||
// invert the direction of the gravity vector for ECL problems
|
||||
// (z coodinates represent depth, not height.)
|
||||
this->gravity_[dim - 1] *= -1;
|
||||
// set the value of the gravity constant to the one used by the FLOW simulator
|
||||
this->gravity_ = 0.0;
|
||||
|
||||
// the "NOGRAV" keyword from Frontsim disables gravity...
|
||||
const auto& deck = simulator.gridManager().deck();
|
||||
if (deck->hasKeyword("NOGRAV") || !EWOMS_GET_PARAM(TypeTag, bool, EnableGravity))
|
||||
this->gravity_ = 0.0;
|
||||
if (!deck->hasKeyword("NOGRAV") && EWOMS_GET_PARAM(TypeTag, bool, EnableGravity))
|
||||
this->gravity_[dim - 1] = 9.80665;
|
||||
|
||||
initFluidSystem_();
|
||||
readRockParameters_();
|
||||
|
Loading…
Reference in New Issue
Block a user