Throw exception if datum not in oil zone.

We are not capable of handling this, and must abort.
This commit is contained in:
Atgeirr Flø Rasmussen 2014-02-04 10:56:09 +01:00
parent 634b78a9d9
commit 45de38a019

View File

@ -562,6 +562,8 @@ namespace Opm
if (! ((zgoc > z0) || (z0 > zwoc))) {
// Datum depth in oil zone (zgoc <= z0 <= zwoc)
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;