From: Wolfgang Bangerth Date: Thu, 5 Oct 2023 21:00:33 +0000 (-0600) Subject: Some cleanups. X-Git-Tag: relicensing~429^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F16100%2Fhead;p=dealii.git Some cleanups. --- diff --git a/examples/step-62/step-62.cc b/examples/step-62/step-62.cc index 9f8ae00c12..7f130ccf24 100644 --- a/examples/step-62/step-62.cc +++ b/examples/step-62/step-62.cc @@ -1186,8 +1186,8 @@ namespace step62 ((unsigned int)std::log10(parameters.nb_frequency_points)) + 1; frequency_idx_stream << std::setw(nb_number_positions) << std::setfill('0') << frequency_idx; - std::string filename = (parameters.simulation_name + "_" + - frequency_idx_stream.str() + ".vtu"); + const std::string filename = (parameters.simulation_name + "_" + + frequency_idx_stream.str() + ".vtu"); data_out.write_vtu_in_parallel(filename, mpi_communicator); } } diff --git a/include/deal.II/base/index_set.h b/include/deal.II/base/index_set.h index 12e5c5f3e7..eea8a9418a 100644 --- a/include/deal.II/base/index_set.h +++ b/include/deal.II/base/index_set.h @@ -418,7 +418,7 @@ public: * index set in which we apply a mask that corresponds to the * variables we're currently interested in. For the $u$-$T$ system, * we need a mask (corresponding to an index set of size - * $N_\text{dofs}$ that contains all indices of $u$ degrees of + * $N_\text{dofs}$) that contains all indices of $u$ degrees of * freedom as well as all indices of $T$ degrees of freedom. The * resulting view is an index set of size $N_u+N_T$ that contains * the indices of the locally owned $u$ and $T$ degrees of freedom. diff --git a/include/deal.II/lac/affine_constraints.templates.h b/include/deal.II/lac/affine_constraints.templates.h index c00d803f46..90645183b3 100644 --- a/include/deal.II/lac/affine_constraints.templates.h +++ b/include/deal.II/lac/affine_constraints.templates.h @@ -123,7 +123,7 @@ AffineConstraints::is_consistent_in_parallel( for (unsigned int owner = 0; owner < nproc; ++owner) { // find all lines to send to @p owner - IndexSet indices_to_send = non_owned & locally_owned_dofs[owner]; + const IndexSet indices_to_send = non_owned & locally_owned_dofs[owner]; for (const auto row_idx : indices_to_send) { to_send[owner].emplace_back(get_line(row_idx));