mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Throw exception if datum not in oil zone.
We are not capable of handling this, and must abort.
This commit is contained in:
parent
8dfab5ab67
commit
09a839f82b
@ -562,6 +562,8 @@ namespace Opm
|
|||||||
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);
|
||||||
|
} else {
|
||||||
|
OPM_THROW(std::runtime_error, "Cannot initialise: the datum depth must be in the oil zone.");
|
||||||
}
|
}
|
||||||
|
|
||||||
return press;
|
return press;
|
||||||
|
Loading…
Reference in New Issue
Block a user