mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
EclFluxModule: add a small fix to the mobility shortcut
let's use zero instead of 10^-18. This can have a small impact on performance, but the new version is definitely "more" correct, and also Norne performance seems to improve slightly on my machine.
This commit is contained in:
parent
2f0a32ba63
commit
cddf643b5a
@ -249,7 +249,9 @@ protected:
|
||||
|
||||
// check shortcut: if the mobility of the phase is zero in the interior as
|
||||
// well as the exterior DOF, we can skip looking at the phase.
|
||||
if (intQuantsIn.mobility(phaseIdx) < 1e-18 && intQuantsEx.mobility(phaseIdx) < 1e-18) {
|
||||
if (intQuantsIn.mobility(phaseIdx) <= 0.0 &&
|
||||
intQuantsEx.mobility(phaseIdx) <= 0.0)
|
||||
{
|
||||
upIdx_[phaseIdx] = interiorDofIdx_;
|
||||
dnIdx_[phaseIdx] = exteriorDofIdx_;
|
||||
pressureDifference_[phaseIdx] = 0.0;
|
||||
|
Loading…
Reference in New Issue
Block a user