Only shut down wells if under prediction-type control.

This commit is contained in:
Atgeirr Flø Rasmussen
2018-11-23 12:51:13 +01:00
parent 1979fc8f5d
commit 8bd3cbc1c1
4 changed files with 11 additions and 8 deletions

View File

@@ -378,7 +378,7 @@ namespace Opm {
} else {
// Close all consistently failing wells.
for (const auto& well : failing_wells) {
solver.model().wellModel().forceShutWellByName(well, substepTimer.simulationTimeElapsed());
solver.model().wellModel().forceShutWellByNameIfPredictionMode(well, substepTimer.simulationTimeElapsed());
}
substepTimer.provideTimeStepEstimate(dt);
if (solverVerbose_) {