From 24f91aa2483ff8d7bb2a95bd2af9db7b8a55d060 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Atgeirr=20Fl=C3=B8=20Rasmussen?= Date: Thu, 13 Aug 2015 10:21:24 +0200 Subject: [PATCH] Use the correct (new) method from the Group class for group RESV. Production controls now are no longer initialised from injection control data. --- opm/core/wells/WellsGroup.cpp | 2 +- tests/test_wellsgroup.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index 54cb4b83e..7b65f868a 100644 --- a/opm/core/wells/WellsGroup.cpp +++ b/opm/core/wells/WellsGroup.cpp @@ -1064,7 +1064,7 @@ namespace Opm production_specification.gas_max_rate_ = group->getGasTargetRate(timeStep); production_specification.liquid_max_rate_ = group->getLiquidTargetRate(timeStep); production_specification.procedure_ = toProductionProcedure(GroupProductionExceedLimit::ActionEnum2String(group->getProductionExceedLimitAction(timeStep))); - production_specification.reservoir_flow_max_rate_ = group->getReservoirMaxRate(timeStep); + production_specification.reservoir_flow_max_rate_ = group->getReservoirVolumeTargetRate(timeStep); } std::shared_ptr wells_group(new WellsGroup(group->name(), production_specification, injection_specification, phase_usage)); diff --git a/tests/test_wellsgroup.cpp b/tests/test_wellsgroup.cpp index 3aa996fc8..ece1a5356 100644 --- a/tests/test_wellsgroup.cpp +++ b/tests/test_wellsgroup.cpp @@ -100,7 +100,7 @@ BOOST_AUTO_TEST_CASE(ConstructGroupFromGroup) { BOOST_CHECK_EQUAL(group->getTargetVoidReplacementFraction(2), wellsGroup->injSpec().voidage_replacment_fraction_); } if (group->isProductionGroup(2)) { - BOOST_CHECK_EQUAL(group->getReservoirMaxRate(2), wellsGroup->prodSpec().reservoir_flow_max_rate_); + BOOST_CHECK_EQUAL(group->getReservoirVolumeTargetRate(2), wellsGroup->prodSpec().reservoir_flow_max_rate_); BOOST_CHECK_EQUAL(group->getGasTargetRate(2), wellsGroup->prodSpec().gas_max_rate_); BOOST_CHECK_EQUAL(group->getOilTargetRate(2), wellsGroup->prodSpec().oil_max_rate_); BOOST_CHECK_EQUAL(group->getWaterTargetRate(2), wellsGroup->prodSpec().water_max_rate_);