From a75d21e403b6bc8ba58127e581628aaed47d2a6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Fri, 29 May 2020 16:20:04 +0200 Subject: [PATCH] Fix bug in well closing, and allow more chopping by default. --- opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp index bffdf2779..c03b4fe62 100644 --- a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp @@ -59,7 +59,7 @@ SET_INT_PROP(FlowTimeSteppingParameters, TimeStepControlTargetNewtonIterations, SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlDecayRate, 0.75); SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlGrowthRate, 1.25); SET_STRING_PROP(FlowTimeSteppingParameters, TimeStepControlFileName, "timesteps"); -SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.25); +SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.001); END_PROPERTIES @@ -533,10 +533,10 @@ namespace Opm { const int rep_step = sr.back().report_step; const int sub_step = sr.back().current_step; const int sr_size = sr.size(); - for (const auto& wf : wfs) { - failing_wells.insert(wf.wellName()); - } if (sr_size >= num_steps) { + for (const auto& wf : wfs) { + failing_wells.insert(wf.wellName()); + } for (int s = 1; s < num_steps; ++s) { const auto& srep = sr[sr_size - 1 - s]; // Report must be from same report step and substep, otherwise we have