]> https://gitweb.dealii.org/ - dealii.git/commitdiff
step-72: fix warnings 17015/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 13 May 2024 11:30:26 +0000 (07:30 -0400)
committerTimo Heister <timo.heister@gmail.com>
Mon, 13 May 2024 11:30:26 +0000 (07:30 -0400)
examples/step-72/step-72.cc

index b1fe79105cacb7a7d8c5ee1472c0c5659f14caeb..6072e84c3842da172414cb084605bb81efc0a8f7 100644 (file)
@@ -383,7 +383,7 @@ namespace Step72
     // in the `copy_data` instance that is passed into this function. This
     // `copy_data` has been filled with data during @a some call to the
     // `cell_worker`.
-    const auto copier = [dofs_per_cell, this](const CopyData &copy_data) {
+    const auto copier = [this](const CopyData &copy_data) {
       const FullMatrix<double> &cell_matrix = copy_data.matrices[0];
       const Vector<double>     &cell_rhs    = copy_data.vectors[0];
       const std::vector<types::global_dof_index> &local_dof_indices =
@@ -592,7 +592,7 @@ namespace Step72
     };
 
     // The remainder of the function equals what we had previously:
-    const auto copier = [dofs_per_cell, this](const CopyData &copy_data) {
+    const auto copier = [this](const CopyData &copy_data) {
       const FullMatrix<double> &cell_matrix = copy_data.matrices[0];
       const Vector<double>     &cell_rhs    = copy_data.vectors[0];
       const std::vector<types::global_dof_index> &local_dof_indices =
@@ -740,7 +740,7 @@ namespace Step72
 
     // As in the previous two functions, the remainder of the function is as
     // before:
-    const auto copier = [dofs_per_cell, this](const CopyData &copy_data) {
+    const auto copier = [this](const CopyData &copy_data) {
       const FullMatrix<double> &cell_matrix = copy_data.matrices[0];
       const Vector<double>     &cell_rhs    = copy_data.vectors[0];
       const std::vector<types::global_dof_index> &local_dof_indices =

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.