From: Wolfgang Bangerth Date: Sat, 10 Dec 2022 03:43:36 +0000 (-0700) Subject: Remove a function argument. X-Git-Tag: v9.5.0-rc1~742^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F14556%2Fhead;p=dealii.git Remove a function argument. --- 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