Include goc and woc in the span for the phase pressure calculation

This commit is contained in:
Tor Harald Sandve 2014-09-02 14:46:10 +02:00 committed by Andreas Lauser
parent 02f6d8f8eb
commit 18dd2c6e39

View File

@ -559,6 +559,10 @@ namespace Opm
const double zwoc = reg.zwoc ();
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))) {
// Datum depth in oil zone (zgoc <= z0 <= zwoc)
Details::equilibrateOWG(G, reg, grav, span, cells, press);