ECL peaceman well: retrieve the gravity constant from the problem

this makes things consistent if gravity is disabled...
This commit is contained in:
Andreas Lauser 2015-01-12 11:51:50 +01:00
parent deb10b7524
commit a9e40ce36a

View File

@ -1137,7 +1137,7 @@ protected:
Scalar depth = dofVars.depth;
// gravity constant
Scalar g = 9.81;
Scalar g = simulator_.problem().gravity()[dimWorld - 1];
typename FluidSystem::ParameterCache paramCache;
for (int phaseIdx = 0; phaseIdx < numPhases; ++phaseIdx) {