diff --git a/opm/core/simulator/initStateEquil_impl.hpp b/opm/core/simulator/initStateEquil_impl.hpp index 381a3f51c..a713e3b34 100644 --- a/opm/core/simulator/initStateEquil_impl.hpp +++ b/opm/core/simulator/initStateEquil_impl.hpp @@ -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;