From 353f7e0627aee4b4453ceacd19122f2a84246cac Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Thu, 20 Feb 2020 01:34:30 -0600 Subject: [PATCH] use face_indices --- examples/step-69/step-69.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/step-69/step-69.cc b/examples/step-69/step-69.cc index af53f0cbd4..7ad20ef232 100644 --- a/examples/step-69/step-69.cc +++ b/examples/step-69/step-69.cc @@ -623,7 +623,7 @@ namespace Step69 for (const auto &cell : triangulation.active_cell_iterators()) { - for (unsigned int f = 0; f < GeometryInfo<2>::faces_per_cell; ++f) + for (auto f : GeometryInfo::face_indices()) { const auto face = cell->face(f); @@ -1064,7 +1064,7 @@ namespace Step69 // Now we have to compute the boundary normals. Note that the // following loop does not do much unless the element has faces on // the boundary of the domain. - for (unsigned int f = 0; f < GeometryInfo::faces_per_cell; ++f) + for (auto f : GeometryInfo::face_indices()) { const auto face = cell->face(f); const auto id = face->boundary_id(); @@ -1346,7 +1346,7 @@ namespace Step69 for (auto &matrix : cell_cij_matrix) matrix = 0.; - for (unsigned int f = 0; f < GeometryInfo::faces_per_cell; ++f) + for (auto f : GeometryInfo::face_indices()) { const auto face = cell->face(f); const auto id = face->boundary_id(); -- 2.39.5