]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid a deprecated function in the last context where it is used.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 10 Jan 2023 00:43:36 +0000 (17:43 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 12 Jan 2023 21:42:36 +0000 (14:42 -0700)
include/deal.II/grid/connectivity.h

index 3be9d0ebc25819775b85052acb993cda031e4c61..0b926d681715fa24ea38a413d73884a0b66f1e99 100644 (file)
@@ -1140,9 +1140,8 @@ namespace internal
       std::array<unsigned int, key_length> 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<unsigned int>(
+                    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;
         }

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.