mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Include goc and woc in the span for the phase pressure calculation
This commit is contained in:
parent
4923b9968e
commit
ebaaa2c51c
@ -559,6 +559,10 @@ namespace Opm
|
|||||||
const double zwoc = reg.zwoc ();
|
const double zwoc = reg.zwoc ();
|
||||||
const double zgoc = reg.zgoc ();
|
const double zgoc = reg.zgoc ();
|
||||||
|
|
||||||
|
// make sure goc and woc is within the span for the phase pressure calculation
|
||||||
|
span[0] = std::min(span[0],zgoc);
|
||||||
|
span[1] = std::max(span[1],zwoc);
|
||||||
|
|
||||||
if (! ((zgoc > z0) || (z0 > zwoc))) {
|
if (! ((zgoc > z0) || (z0 > zwoc))) {
|
||||||
// Datum depth in oil zone (zgoc <= z0 <= zwoc)
|
// Datum depth in oil zone (zgoc <= z0 <= zwoc)
|
||||||
Details::equilibrateOWG(G, reg, grav, span, cells, press);
|
Details::equilibrateOWG(G, reg, grav, span, cells, press);
|
||||||
|
Loading…
Reference in New Issue
Block a user