mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Use simpler APIs.
This commit is contained in:
parent
0013c49aa2
commit
eb8d3a0b2d
@ -190,8 +190,8 @@ public:
|
|||||||
{
|
{
|
||||||
assert(timeIdx == 0);
|
assert(timeIdx == 0);
|
||||||
flux = 0.0;
|
flux = 0.0;
|
||||||
Scalar Vin = problem.volume(globalIndexIn, /*timeIdx=*/0);
|
Scalar Vin = problem.model().dofTotalVolume(globalIndexIn);
|
||||||
Scalar Vex = problem.volume(globalIndexEx, /*timeIdx=*/0);
|
Scalar Vex = problem.model().dofTotalVolume(globalIndexEx);
|
||||||
|
|
||||||
|
|
||||||
Scalar trans = 1.0;//problem.transmissibility(globalIndexIn,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
|
// 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
|
// ECL seems to like to be inconsistent on that front, it needs to be done like
|
||||||
// here...
|
// here...
|
||||||
Scalar zIn = problem.dofCenterDepth(globalIndexIn, timeIdx);
|
Scalar zIn = problem.dofCenterDepth(globalIndexIn);
|
||||||
Scalar zEx = problem.dofCenterDepth(globalIndexEx, timeIdx);
|
Scalar zEx = problem.dofCenterDepth(globalIndexEx);
|
||||||
|
|
||||||
// the distances from the DOF's depths. (i.e., the additional depth of the
|
// the distances from the DOF's depths. (i.e., the additional depth of the
|
||||||
// exterior DOF)
|
// exterior DOF)
|
||||||
|
Loading…
Reference in New Issue
Block a user