Skip to content

Commit 25fe475

Browse files
committed
Use new iterator
1 parent 7aa8d01 commit 25fe475

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/integrated/test-fci-boundary/get_par_bndry.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ int main(int argc, char** argv) {
1717
for (const auto& bndry_par :
1818
mesh->getBoundariesPar(static_cast<BoundaryParType>(i))) {
1919
output.write("{:s} region\n", toString(static_cast<BoundaryParType>(i)));
20-
for (bndry_par->first(); !bndry_par->isDone(); bndry_par->next()) {
21-
fields[i][bndry_par->ind()] += 1;
20+
for (auto& pnt: *bndry_par) {
21+
fields[i][pnt.ind()] += 1;
2222
output.write("{:s} increment\n", toString(static_cast<BoundaryParType>(i)));
2323
}
2424
}

0 commit comments

Comments
 (0)