From 6b73f6279e4c424ab54a0249743424bf4228e68e Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 13 Apr 2024 13:59:30 -0400 Subject: [PATCH] Clean up some long lines. --- source/grid/tria.cc | 28 +++++++++------------------- 1 file changed, 9 insertions(+), 19 deletions(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index b56a89137f..8191fccce2 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -6756,16 +6756,12 @@ namespace internal {{2, 1, 0}}, // 4 {{2, 0, 1}}}}; + const unsigned char combined_orientation = + hex->combined_face_orientation(f); relevant_lines[k] = hex->face(f) ->child(3 /*center triangle*/) - ->line( - table[triangulation.levels[hex->level()] - ->face_orientations - .get_combined_orientation( - hex->index() * GeometryInfo:: - faces_per_cell + - f)][l]); + ->line(table[combined_orientation][l]); } relevant_lines[k++] = new_lines[0]; @@ -7021,19 +7017,13 @@ namespace internal for (unsigned int f = 0, k = n_new_quads; f < 4; ++f) for (unsigned int c = 0; c < 4; ++c, ++k) { + const unsigned char combined_orientation = + hex->combined_face_orientation(f); quad_indices[k] = hex->face(f)->child_index( - (c == 3) ? - 3 : - reference_cell_type - .standard_to_real_face_vertex( - c, - f, - triangulation.levels[hex->level()] - ->face_orientations - .get_combined_orientation( - hex->index() * - GeometryInfo::faces_per_cell + - f))); + (c == 3) ? 3 : + reference_cell_type + .standard_to_real_face_vertex( + c, f, combined_orientation)); } } else -- 2.39.5