From 36bedfcf67dcf0941e7634b0cdfe7bef7a5d1c52 Mon Sep 17 00:00:00 2001 From: Kai Bao Date: Wed, 28 Sep 2016 13:49:58 +0200 Subject: [PATCH] not returning zero from double WellNode::productionGuideRate Current understanding. Two ways might prevent to return the guide_rate here 1. preventing the well from group control with keyword WGRUPCON 2. the well violating some limits and working under limits. We do not have strategy to handle this situation yet. --- opm/core/wells/WellsGroup.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index 53fa801f..ec29e71d 100644 --- a/opm/core/wells/WellsGroup.cpp +++ b/opm/core/wells/WellsGroup.cpp @@ -981,10 +981,14 @@ namespace Opm /// wells under group control double WellNode::productionGuideRate(bool only_group) { - if (!only_group || prodSpec().control_mode_ == ProductionSpecification::GRUP) { - return prodSpec().guide_rate_; - } - return 0.0; + // Current understanding. Two ways might prevent to return the guide_rate here + // 1. preventing the well from group control with keyword WGRUPCON + // 2. the well violating some limits and working under limits. We do not have strategy + // to handle this situation yet. + // if (!only_group || prodSpec().control_mode_ == ProductionSpecification::GRUP) { + return prodSpec().guide_rate_; + // } + // return 0.0; } /// Calculates the injection guide rate for the group.