]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Rename a function.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Dec 2022 05:09:32 +0000 (22:09 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 13 Dec 2022 05:09:32 +0000 (22:09 -0700)
source/base/data_out_base.cc

index 07bf383ae063113e5c1ae981b397b8fce60cc410..7582d2f335254fb5cbad3a9935c781fa220f41d0 100644 (file)
@@ -997,9 +997,9 @@ namespace
 
   template <int dim>
   int
-  vtk_point_index_from_ijk(const std::array<unsigned, dim> &,
-                           const std::array<unsigned, dim> &,
-                           const bool)
+  lexicographic_to_vtk_point_index(const std::array<unsigned, dim> &,
+                                   const std::array<unsigned, dim> &,
+                                   const bool)
   {
     Assert(false, ExcNotImplemented());
     return 0;
@@ -1016,9 +1016,9 @@ namespace
    */
   template <>
   int
-  vtk_point_index_from_ijk<2>(const std::array<unsigned, 2> &indices,
-                              const std::array<unsigned, 2> &order,
-                              const bool)
+  lexicographic_to_vtk_point_index<2>(const std::array<unsigned, 2> &indices,
+                                      const std::array<unsigned, 2> &order,
+                                      const bool)
   {
     const unsigned int i = indices[0];
     const unsigned int j = indices[1];
@@ -1073,9 +1073,9 @@ namespace
    */
   template <>
   int
-  vtk_point_index_from_ijk<3>(const std::array<unsigned, 3> &indices,
-                              const std::array<unsigned, 3> &order,
-                              const bool                     legacy_format)
+  lexicographic_to_vtk_point_index<3>(const std::array<unsigned, 3> &indices,
+                                      const std::array<unsigned, 3> &order,
+                                      const bool legacy_format)
   {
     const unsigned int i = indices[0];
     const unsigned int j = indices[1];
@@ -3085,9 +3085,8 @@ namespace DataOutBase
                       {
                         const unsigned int local_index = i1;
                         const unsigned int connectivity_index =
-                          vtk_point_index_from_ijk<1>({{i1}},
-                                                      {{n_subdivisions}},
-                                                      legacy_format);
+                          lexicographic_to_vtk_point_index<1>(
+                            {{i1}}, {{n_subdivisions}}, legacy_format);
                         connectivity[connectivity_index] = local_index;
                       }
 
@@ -3100,10 +3099,10 @@ namespace DataOutBase
                         {
                           const unsigned int local_index = i2 * n + i1;
                           const unsigned int connectivity_index =
-                            vtk_point_index_from_ijk<2>({{i1, i2}},
-                                                        {{n_subdivisions,
-                                                          n_subdivisions}},
-                                                        legacy_format);
+                            lexicographic_to_vtk_point_index<2>(
+                              {{i1, i2}},
+                              {{n_subdivisions, n_subdivisions}},
+                              legacy_format);
                           connectivity[connectivity_index] = local_index;
                         }
 
@@ -3118,11 +3117,12 @@ namespace DataOutBase
                             const unsigned int local_index =
                               i3 * n * n + i2 * n + i1;
                             const unsigned int connectivity_index =
-                              vtk_point_index_from_ijk<3>({{i1, i2, i3}},
-                                                          {{n_subdivisions,
-                                                            n_subdivisions,
-                                                            n_subdivisions}},
-                                                          legacy_format);
+                              lexicographic_to_vtk_point_index<3>(
+                                {{i1, i2, i3}},
+                                {{n_subdivisions,
+                                  n_subdivisions,
+                                  n_subdivisions}},
+                                legacy_format);
                             connectivity[connectivity_index] = local_index;
                           }
 

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.