mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ECL problem: also set the gravity vector to zero if the "EnableGravity" parameter is false
although it worked for the reservoir itself, this has some effect on the wells (which retrieve the gravity potential from the problem).
This commit is contained in:
@@ -265,7 +265,7 @@ public:
|
||||
|
||||
// the "NOGRAV" keyword from Frontsim disables gravity...
|
||||
const auto& deck = simulator.gridManager().deck();
|
||||
if (deck->hasKeyword("NOGRAV"))
|
||||
if (deck->hasKeyword("NOGRAV") || !EWOMS_GET_PARAM(TypeTag, bool, EnableGravity))
|
||||
this->gravity_ = 0.0;
|
||||
|
||||
initFluidSystem_();
|
||||
|
||||
Reference in New Issue
Block a user