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
634b78a9d9
commit
45de38a019
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user