From 2aadb74a86110363330cb9001c16c1be4513265f Mon Sep 17 00:00:00 2001 From: Simon Sticko Date: Tue, 10 May 2022 08:35:58 +0200 Subject: [PATCH] Rename a few variables and use range based loop in mesh classifer test. --- tests/non_matching/mesh_classifier.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/non_matching/mesh_classifier.cc b/tests/non_matching/mesh_classifier.cc index 3330a08ce2..a0dbf8fb0c 100644 --- a/tests/non_matching/mesh_classifier.cc +++ b/tests/non_matching/mesh_classifier.cc @@ -73,15 +73,15 @@ print_cell_and_face_locations( const NonMatching::MeshClassifier & classifier, const typename Triangulation::active_cell_iterator &cell) { - const NonMatching::LocationToLevelSet cell_position = + const NonMatching::LocationToLevelSet cell_location = classifier.location_to_level_set(cell); - deallog << "cell " << location_to_string(cell_position) << std::endl; + deallog << "cell " << location_to_string(cell_location) << std::endl; - for (unsigned int i = 0; i < GeometryInfo::faces_per_cell; ++i) + for (unsigned int f : cell->face_indices()) { - const NonMatching::LocationToLevelSet cell_position = - classifier.location_to_level_set(cell, i); - deallog << "face " << i << ' ' << location_to_string(cell_position) + const NonMatching::LocationToLevelSet face_location = + classifier.location_to_level_set(cell, f); + deallog << "face " << f << ' ' << location_to_string(face_location) << std::endl; } } -- 2.39.5