]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Some cleanups. 16100/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Thu, 5 Oct 2023 21:00:33 +0000 (15:00 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Thu, 5 Oct 2023 21:00:33 +0000 (15:00 -0600)
examples/step-62/step-62.cc
include/deal.II/base/index_set.h
include/deal.II/lac/affine_constraints.templates.h

index 9f8ae00c1275abd0d78e67b0bf6ce0dcf284bfe6..7f130ccf243f95d096ce539d773e2c0bff57a40d 100644 (file)
@@ -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);
       }
   }
index 12e5c5f3e71ba5d7a3a7bc19a03821a17117e9d3..eea8a9418a152398a972809dd17deb458027771c 100644 (file)
@@ -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.
index c00d803f46c6008f4640d507de1e00a48e470c4c..90645183b3f3340903cdb5b784303727535df9b2 100644 (file)
@@ -123,7 +123,7 @@ AffineConstraints<number>::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));

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.