From 9b58712872b33ffbf38e2abcd2fa2ffe4fa6e9ab Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 9 Dec 2022 20:43:36 -0700 Subject: [PATCH] Remove a function argument. --- source/base/data_out_base.cc | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/source/base/data_out_base.cc b/source/base/data_out_base.cc index 38b9579631..8826a607c0 100644 --- a/source/base/data_out_base.cc +++ b/source/base/data_out_base.cc @@ -1551,8 +1551,7 @@ namespace */ template void - write_high_order_cell(const unsigned int index, - const unsigned int start, + write_high_order_cell(const unsigned int start, const std::vector &connectivity); }; @@ -1571,8 +1570,7 @@ namespace */ template void - write_high_order_cell(const unsigned int index, - const unsigned int start, + write_high_order_cell(const unsigned int start, const std::vector &connectivity); void @@ -2032,8 +2030,7 @@ namespace template void - VtkStream::write_high_order_cell(const unsigned int, - const unsigned int start, + VtkStream::write_high_order_cell(const unsigned int start, const std::vector &connectivity) { stream << connectivity.size(); @@ -2052,8 +2049,7 @@ namespace template void - VtuStream::write_high_order_cell(const unsigned int, - const unsigned int start, + VtuStream::write_high_order_cell(const unsigned int start, const std::vector &connectivity) { if (deal_ii_with_zlib && @@ -3059,11 +3055,8 @@ namespace DataOutBase { Assert(dim <= 3 && dim > 1, ExcNotImplemented()); unsigned int first_vertex_of_patch = 0; - unsigned int count = 0; // Array to hold all the node numbers of a cell std::vector connectivity; - // Array to hold cell order in each dimension - std::array cell_order; for (const auto &patch : patches) { @@ -3074,8 +3067,7 @@ namespace DataOutBase for (unsigned int i = 0; i < patch.data.n_cols(); ++i) connectivity[i] = i; - out.template write_high_order_cell(count++, - first_vertex_of_patch, + out.template write_high_order_cell(first_vertex_of_patch, connectivity); first_vertex_of_patch += patch.data.n_cols(); @@ -3085,6 +3077,7 @@ namespace DataOutBase const unsigned int n_subdivisions = patch.n_subdivisions; const unsigned int n = n_subdivisions + 1; + std::array cell_order; cell_order.fill(n_subdivisions); connectivity.resize(Utilities::fixed_power(n)); @@ -3146,8 +3139,7 @@ namespace DataOutBase // Having so set up the 'connectivity' data structure, // output it: - out.template write_high_order_cell(count++, - first_vertex_of_patch, + out.template write_high_order_cell(first_vertex_of_patch, connectivity); // Finally update the number of the first vertex of this patch -- 2.39.5