diff --git a/opm/core/wells/WellsGroup.cpp b/opm/core/wells/WellsGroup.cpp index 54cb4b83..7b65f868 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 3aa996fc..ece1a535 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_);