mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #2646 from atgeirr/fix-closing-wells-after-chopping
Fix bug in well closing, and allow more chopping by default.
This commit is contained in:
commit
e8f49d61a3
@ -59,7 +59,7 @@ SET_INT_PROP(FlowTimeSteppingParameters, TimeStepControlTargetNewtonIterations,
|
|||||||
SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlDecayRate, 0.75);
|
SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlDecayRate, 0.75);
|
||||||
SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlGrowthRate, 1.25);
|
SET_SCALAR_PROP(FlowTimeSteppingParameters, TimeStepControlGrowthRate, 1.25);
|
||||||
SET_STRING_PROP(FlowTimeSteppingParameters, TimeStepControlFileName, "timesteps");
|
SET_STRING_PROP(FlowTimeSteppingParameters, TimeStepControlFileName, "timesteps");
|
||||||
SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.25);
|
SET_SCALAR_PROP(FlowTimeSteppingParameters, MinTimeStepBeforeShuttingProblematicWellsInDays, 0.001);
|
||||||
|
|
||||||
|
|
||||||
END_PROPERTIES
|
END_PROPERTIES
|
||||||
@ -533,10 +533,10 @@ namespace Opm {
|
|||||||
const int rep_step = sr.back().report_step;
|
const int rep_step = sr.back().report_step;
|
||||||
const int sub_step = sr.back().current_step;
|
const int sub_step = sr.back().current_step;
|
||||||
const int sr_size = sr.size();
|
const int sr_size = sr.size();
|
||||||
|
if (sr_size >= num_steps) {
|
||||||
for (const auto& wf : wfs) {
|
for (const auto& wf : wfs) {
|
||||||
failing_wells.insert(wf.wellName());
|
failing_wells.insert(wf.wellName());
|
||||||
}
|
}
|
||||||
if (sr_size >= num_steps) {
|
|
||||||
for (int s = 1; s < num_steps; ++s) {
|
for (int s = 1; s < num_steps; ++s) {
|
||||||
const auto& srep = sr[sr_size - 1 - s];
|
const auto& srep = sr[sr_size - 1 - s];
|
||||||
// Report must be from same report step and substep, otherwise we have
|
// Report must be from same report step and substep, otherwise we have
|
||||||
|
Loading…
Reference in New Issue
Block a user