Skip to content

Commit

Permalink
Merge pull request #199 from joakim-hove/group-group
Browse files Browse the repository at this point in the history
Groups of groups summary data.
  • Loading branch information
joakim-hove authored Jul 26, 2017
2 parents e2a31d8 + 3c2a376 commit c0c5874
Show file tree
Hide file tree
Showing 4 changed files with 584 additions and 10 deletions.
1 change: 1 addition & 0 deletions CMakeLists_files.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ list (APPEND TEST_SOURCE_FILES
list (APPEND TEST_DATA_FILES
tests/FIRST_SIM.DATA
tests/summary_deck.DATA
tests/group_group.DATA
tests/testBlackoilState3.DATA
tests/testRFT.DATA
tests/table_deck.DATA
Expand Down
11 changes: 1 addition & 10 deletions opm/output/eclipse/Summary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -772,16 +772,7 @@ inline std::vector< const Well* > find_wells( const Schedule& schedule,
if( type == ECL_SMSPEC_GROUP_VAR ) {
if( !schedule.hasGroup( name ) ) return {};

const auto& names = schedule.getGroup( name ).getWells( timestep );
auto get = [&schedule]( const std::string& w ) {
return schedule.getWell( w );
};

std::vector< const Well* > wells;
auto insert = std::back_inserter( wells );
std::transform( names.begin(), names.end(), insert, get );

return wells;
return schedule.getWells( name, timestep );
}

if( type == ECL_SMSPEC_FIELD_VAR )
Expand Down
Loading

0 comments on commit c0c5874

Please sign in to comment.