mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-25 02:30:18 -06:00
Remove calls to Schedule::getGroups()
This commit is contained in:
parent
c1574a23d0
commit
54c4fc2f9c
@ -95,9 +95,9 @@ BOOST_AUTO_TEST_CASE(ConstructGroupFromGroup) {
|
||||
|
||||
const auto& nodes = sched.getGroupTree(2);
|
||||
|
||||
for( const auto& grp : sched.getGroups() ) {
|
||||
if( !nodes.exists( grp->name() ) ) continue;
|
||||
const auto& group = *grp;
|
||||
for( const auto& grp_name : sched.groupNames() ) {
|
||||
if( !nodes.exists( grp_name ) ) continue;
|
||||
const auto& group = sched.getGroup(grp_name);
|
||||
|
||||
std::shared_ptr<WellsGroupInterface> wellsGroup = createGroupWellsGroup(group, 2, pu);
|
||||
BOOST_CHECK_EQUAL(group.name(), wellsGroup->name());
|
||||
@ -131,10 +131,9 @@ BOOST_AUTO_TEST_CASE(EfficiencyFactor) {
|
||||
|
||||
|
||||
const auto& nodes = sched.getGroupTree(2);
|
||||
|
||||
for( const auto& grp : sched.getGroups() ) {
|
||||
if( !nodes.exists( grp->name() ) ) continue;
|
||||
const auto& group = *grp;
|
||||
for( const auto& grp_name : sched.groupNames() ) {
|
||||
if( !nodes.exists( grp_name ) ) continue;
|
||||
const auto& group = sched.getGroup(grp_name);
|
||||
|
||||
std::shared_ptr<WellsGroupInterface> wellsGroup = createGroupWellsGroup(group, 2, pu);
|
||||
BOOST_CHECK_EQUAL(group.name(), wellsGroup->name());
|
||||
|
Loading…
Reference in New Issue
Block a user