From: Simon Sticko Date: Tue, 10 May 2022 06:35:58 +0000 (+0200) Subject: Rename a few variables and use range based loop in mesh classifer test. X-Git-Tag: v9.4.0-rc1~249^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aadb74a86110363330cb9001c16c1be4513265f;p=dealii.git Rename a few variables and use range based loop in mesh classifer test. --- 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; } }