Skip to content

Commit

Permalink
Element is already on its level - remove getLevelElem()
Browse files Browse the repository at this point in the history
  • Loading branch information
aritorto committed Jan 30, 2025
1 parent 482e329 commit c116617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opm/grid/cpgrid/CpGrid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -730,7 +730,7 @@ std::vector<std::array<int,3>> CpGrid::localIJK(const std::string& lgr_name) con

for (const auto& element : elements(levelGridView(level))) {
std::array<int, 3> local_ijk;
levelCartMapp.cartesianCoordinate(element.getEquivLevelElem().index(), local_ijk, element.level());
levelCartMapp.cartesianCoordinate(element.index(), local_ijk, level);
localIJK.emplace_back(local_ijk);
}

Expand Down

0 comments on commit c116617

Please sign in to comment.