Skip to content

Commit

Permalink
Use new iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
dschwoerer committed Oct 22, 2024
1 parent 7aa8d01 commit 25fe475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/integrated/test-fci-boundary/get_par_bndry.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ int main(int argc, char** argv) {
for (const auto& bndry_par :
mesh->getBoundariesPar(static_cast<BoundaryParType>(i))) {
output.write("{:s} region\n", toString(static_cast<BoundaryParType>(i)));
for (bndry_par->first(); !bndry_par->isDone(); bndry_par->next()) {
fields[i][bndry_par->ind()] += 1;
for (auto& pnt: *bndry_par) {
fields[i][pnt.ind()] += 1;
output.write("{:s} increment\n", toString(static_cast<BoundaryParType>(i)));
}
}
Expand Down

0 comments on commit 25fe475

Please sign in to comment.