]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use the standard form of lambda expressions. 16240/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 3 Nov 2023 21:56:31 +0000 (15:56 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 3 Nov 2023 21:56:31 +0000 (15:56 -0600)
include/deal.II/lac/sparse_vanka.templates.h
source/base/kokkos.cc
source/dofs/dof_handler.cc

index fc21ecba4676c8d07e7a1817893977a511197948..e78507d94e178e77f63eae55b08ce855bd2aa352 100644 (file)
@@ -568,8 +568,9 @@ SparseBlockVanka<number>::vmult(Vector<number2>       &dst,
 
   Threads::TaskGroup<> tasks;
   for (unsigned int block = 0; block < n_blocks; ++block)
-    tasks += Threads::new_task(
-      [&, block] { this->apply_preconditioner(dst, src, &dof_masks[block]); });
+    tasks += Threads::new_task([&, block]() {
+      this->apply_preconditioner(dst, src, &dof_masks[block]);
+    });
   tasks.join_all();
 }
 
index 6380fad4ec7545c8a049487f4d936dcc65863005..8be535e2cc06bdb166e4ff75efc09babeb4975fd 100644 (file)
@@ -37,7 +37,7 @@ namespace internal
     )
       {
         // only execute once
-        static bool dummy = [] {
+        static bool dummy = []() {
           dealii_initialized_kokkos = true;
 #if KOKKOS_VERSION >= 30700
           const auto settings =
index 399442ae68e043a5ef6bea211719245682e22691..94bea20d698a293945bfab75c42f0dd740f7e16f 100644 (file)
@@ -2741,7 +2741,7 @@ void DoFHandler<dim, spacedim>::connect_to_triangulation_signals()
           [this]() { this->pre_distributed_transfer_action(); }));
       this->tria_listeners_for_transfer.push_back(
         this->tria->signals.post_distributed_repartition.connect(
-          [this] { this->post_distributed_transfer_action(); }));
+          [this]() { this->post_distributed_transfer_action(); }));
 
       // refinement signals
       this->tria_listeners_for_transfer.push_back(
@@ -2778,20 +2778,20 @@ void DoFHandler<dim, spacedim>::connect_to_triangulation_signals()
         }));
       this->tria_listeners_for_transfer.push_back(
         this->tria->signals.pre_refinement.connect(
-          [this] { this->pre_transfer_action(); }));
+          [this]() { this->pre_transfer_action(); }));
       this->tria_listeners_for_transfer.push_back(
         this->tria->signals.post_refinement.connect(
-          [this] { this->post_transfer_action(); }));
+          [this]() { this->post_transfer_action(); }));
     }
   else
     {
       // refinement signals
       this->tria_listeners_for_transfer.push_back(
         this->tria->signals.pre_refinement.connect(
-          [this] { this->pre_transfer_action(); }));
+          [this]() { this->pre_transfer_action(); }));
       this->tria_listeners_for_transfer.push_back(
         this->tria->signals.post_refinement.connect(
-          [this] { this->post_transfer_action(); }));
+          [this]() { this->post_transfer_action(); }));
     }
 }
 

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.