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:
Andreas Lauser
2015-01-12 17:49:16 +01:00
parent 5bbaba68f7
commit 3e46640b78

View File

@@ -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_();