From: Wolfgang Bangerth Date: Tue, 10 Jan 2023 00:43:36 +0000 (-0700) Subject: Avoid a deprecated function in the last context where it is used. X-Git-Tag: v9.5.0-rc1~650^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=975499ce8ae8365eeb4565db07615152b4ce84d1;p=dealii.git Avoid a deprecated function in the last context where it is used. --- 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; }