From 975499ce8ae8365eeb4565db07615152b4ce84d1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 9 Jan 2023 17:43:36 -0700 Subject: [PATCH] Avoid a deprecated function in the last context where it is used. --- include/deal.II/grid/connectivity.h | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/include/deal.II/grid/connectivity.h b/include/deal.II/grid/connectivity.h index 3be9d0ebc2..0b926d6817 100644 --- a/include/deal.II/grid/connectivity.h +++ b/include/deal.II/grid/connectivity.h @@ -1140,9 +1140,8 @@ namespace internal std::array ref_indices; std::fill(ref_key.begin(), ref_key.end(), 0); - for (unsigned int i = 0, counter = dealii::numbers::invalid_unsigned_int; - i < keys.size(); - i++) + unsigned int counter = dealii::numbers::invalid_unsigned_int; + for (unsigned int i = 0; i < keys.size(); i++) { const auto offset_i = std::get<1>(keys[i]); @@ -1164,8 +1163,14 @@ namespace internal // occurrence orientations.set_raw_orientation( offset_i, - ad_entity_types[offset_i].compute_orientation( - ad_entity_vertices[offset_i], ref_indices)); + ad_entity_types[offset_i] + .template get_orientation_index( + make_array_view(ad_entity_vertices[offset_i].begin(), + ad_entity_vertices[offset_i].begin() + + ad_entity_types[offset_i].n_vertices()), + make_array_view(ref_indices.begin(), + ref_indices.begin() + + ad_entity_types[offset_i].n_vertices()))); } col_d[offset_i] = counter; } -- 2.39.5