From eb8d3a0b2dca7630e86d14340367b78bc9ffc4e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Mon, 4 Jul 2022 15:50:57 +0200 Subject: [PATCH] Use simpler APIs. --- opm/models/blackoil/blackoillocalresidualtpfa.hh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/models/blackoil/blackoillocalresidualtpfa.hh b/opm/models/blackoil/blackoillocalresidualtpfa.hh index 20ea49d1e..a4d5799f6 100644 --- a/opm/models/blackoil/blackoillocalresidualtpfa.hh +++ b/opm/models/blackoil/blackoillocalresidualtpfa.hh @@ -190,8 +190,8 @@ public: { assert(timeIdx == 0); flux = 0.0; - Scalar Vin = problem.volume(globalIndexIn, /*timeIdx=*/0); - Scalar Vex = problem.volume(globalIndexEx, /*timeIdx=*/0); + Scalar Vin = problem.model().dofTotalVolume(globalIndexIn); + Scalar Vex = problem.model().dofTotalVolume(globalIndexEx); Scalar trans = 1.0;//problem.transmissibility(globalIndexIn,globalIndexEx); @@ -210,8 +210,8 @@ public: // solution would be to take the Z coordinate of the element centroids, but since // ECL seems to like to be inconsistent on that front, it needs to be done like // here... - Scalar zIn = problem.dofCenterDepth(globalIndexIn, timeIdx); - Scalar zEx = problem.dofCenterDepth(globalIndexEx, timeIdx); + Scalar zIn = problem.dofCenterDepth(globalIndexIn); + Scalar zEx = problem.dofCenterDepth(globalIndexEx); // the distances from the DOF's depths. (i.e., the additional depth of the // exterior DOF)