From c3e46e4cbd5b12fcef02539e0ed52993ddfc31a0 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 12 Dec 2022 22:09:32 -0700 Subject: [PATCH] Rename a function. --- source/base/data_out_base.cc | 42 ++++++++++++++++++------------------ 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 07bf383ae0..7582d2f335 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -997,9 +997,9 @@ namespace template int - vtk_point_index_from_ijk(const std::array &, - const std::array &, - const bool) + lexicographic_to_vtk_point_index(const std::array &, + const std::array &, + const bool) { Assert(false, ExcNotImplemented()); return 0; @@ -1016,9 +1016,9 @@ namespace */ template <> int - vtk_point_index_from_ijk<2>(const std::array &indices, - const std::array &order, - const bool) + lexicographic_to_vtk_point_index<2>(const std::array &indices, + const std::array &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 &indices, - const std::array &order, - const bool legacy_format) + lexicographic_to_vtk_point_index<3>(const std::array &indices, + const std::array &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; } -- 2.39.5