From: Matthias Maier Date: Thu, 20 Feb 2020 07:34:30 +0000 (-0600) Subject: use face_indices X-Git-Tag: v9.2.0-rc1~443^2~9 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=353f7e0627aee4b4453ceacd19122f2a84246cac;p=dealii.git use face_indices --- 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();