mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix the threshold pressure implementation
before the variable for threshold pressure is used, it should be initialized!
This commit is contained in:
parent
0012aac5bd
commit
34d0184f7d
@ -213,9 +213,11 @@ protected:
|
||||
exteriorDofIdx_ = scvf.exteriorIndex();
|
||||
assert(interiorDofIdx_ != exteriorDofIdx_);
|
||||
|
||||
trans_ = problem.transmissibility(stencil.globalSpaceIndex(interiorDofIdx_),
|
||||
stencil.globalSpaceIndex(exteriorDofIdx_));
|
||||
unsigned I = stencil.globalSpaceIndex(interiorDofIdx_);
|
||||
unsigned J = stencil.globalSpaceIndex(exteriorDofIdx_);
|
||||
trans_ = problem.transmissibility(I, J);
|
||||
faceArea_ = scvf.area();
|
||||
thpres_ = problem.thresholdPressure(I, J);
|
||||
|
||||
// estimate the gravity correction: for performance reasons we use a simplified
|
||||
// approach for this flux module that assumes that gravity is constant and always
|
||||
|
Loading…
Reference in New Issue
Block a user