Add guard around solve well equation.

This commit is contained in:
Tor Harald Sandve
2021-01-19 14:43:32 +01:00
parent 62e485cbea
commit 36ba423d42
2 changed files with 23 additions and 10 deletions

View File

@@ -1392,6 +1392,9 @@ namespace Opm
WellState& well_state,
Opm::DeferredLogger& deferred_logger)
{
if (!this->isOperable())
return;
// keep a copy of the original well state
const WellState well_state0 = well_state;
const double dt = ebosSimulator.timeStepSize();