]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Just capture this 8818/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 20 Sep 2019 23:06:43 +0000 (17:06 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 20 Sep 2019 23:06:43 +0000 (17:06 -0600)
source/hp/dof_handler.cc

index 98f6373e8f990e0c89260f4f050e3edaf41895a0..edd2344bd161ccc10d33e094dea0b04228caee77 100644 (file)
@@ -1731,11 +1731,11 @@ namespace hp
   {
     // connect functions to signals of the underlying triangulation
     tria_listeners.push_back(this->tria->signals.pre_refinement.connect(
-      [&]() { this->pre_refinement_action(); }));
+      [this]() { this->pre_refinement_action(); }));
     tria_listeners.push_back(this->tria->signals.post_refinement.connect(
-      [&]() { this->post_refinement_action(); }));
+      [this]() { this->post_refinement_action(); }));
     tria_listeners.push_back(this->tria->signals.create.connect(
-      [&]() { this->post_refinement_action(); }));
+      [this]() { this->post_refinement_action(); }));
 
     // decide whether we need a sequential or a parallel shared/distributed
     // policy and attach corresponding callback functions dealing with the
@@ -1749,28 +1749,28 @@ namespace hp
 
         // repartitioning signals
         tria_listeners.push_back(
-          this->tria->signals.pre_distributed_repartition.connect([&]() {
+          this->tria->signals.pre_distributed_repartition.connect([this]() {
             internal::hp::DoFHandlerImplementation::Implementation::
               ensure_absence_of_future_fe_indices<dim, spacedim>(*this);
           }));
         tria_listeners.push_back(
           this->tria->signals.pre_distributed_repartition.connect(
-            [&]() { this->pre_distributed_active_fe_index_transfer(); }));
+            [this]() { this->pre_distributed_active_fe_index_transfer(); }));
         tria_listeners.push_back(
           this->tria->signals.post_distributed_repartition.connect(
-            [&] { this->post_distributed_active_fe_index_transfer(); }));
+            [this] { this->post_distributed_active_fe_index_transfer(); }));
 
         // refinement signals
         tria_listeners.push_back(
           this->tria->signals.pre_distributed_refinement.connect(
-            [&]() { this->pre_distributed_active_fe_index_transfer(); }));
+            [this]() { this->pre_distributed_active_fe_index_transfer(); }));
         tria_listeners.push_back(
           this->tria->signals.post_distributed_refinement.connect(
-            [&]() { this->post_distributed_active_fe_index_transfer(); }));
+            [this]() { this->post_distributed_active_fe_index_transfer(); }));
 
         // serialization signals
         tria_listeners.push_back(
-          this->tria->signals.post_distributed_save.connect([&]() {
+          this->tria->signals.post_distributed_save.connect([this]() {
             this->post_distributed_serialization_of_active_fe_indices();
           }));
       }
@@ -1784,16 +1784,16 @@ namespace hp
 
         // partitioning signals
         tria_listeners.push_back(
-          this->tria->signals.pre_partition.connect([&]() {
+          this->tria->signals.pre_partition.connect([this]() {
             internal::hp::DoFHandlerImplementation::Implementation::
               ensure_absence_of_future_fe_indices(*this);
           }));
 
         // refinement signals
         tria_listeners.push_back(this->tria->signals.pre_refinement.connect(
-          [&] { this->pre_active_fe_index_transfer(); }));
+          [this] { this->pre_active_fe_index_transfer(); }));
         tria_listeners.push_back(this->tria->signals.post_refinement.connect(
-          [&] { this->post_active_fe_index_transfer(); }));
+          [this] { this->post_active_fe_index_transfer(); }));
       }
     else
       {
@@ -1804,9 +1804,9 @@ namespace hp
 
         // refinement signals
         tria_listeners.push_back(this->tria->signals.pre_refinement.connect(
-          [&] { this->pre_active_fe_index_transfer(); }));
+          [this] { this->pre_active_fe_index_transfer(); }));
         tria_listeners.push_back(this->tria->signals.post_refinement.connect(
-          [&] { this->post_active_fe_index_transfer(); }));
+          [this] { this->post_active_fe_index_transfer(); }));
       }
   }
 
@@ -2085,7 +2085,7 @@ namespace hp
             CellDataTransfer<dim, spacedim, std::vector<unsigned int>>>(
           *distributed_tria,
           /*transfer_variable_size_data=*/false,
-          [&](const std::vector<unsigned int> &children_fe_indices) {
+          [this](const std::vector<unsigned int> &children_fe_indices) {
             return dealii::internal::hp::DoFHandlerImplementation::
               Implementation::determine_fe_from_children<dim, spacedim>(
                 children_fe_indices, fe_collection);
@@ -2196,7 +2196,7 @@ namespace hp
             CellDataTransfer<dim, spacedim, std::vector<unsigned int>>>(
           *distributed_tria,
           /*transfer_variable_size_data=*/false,
-          [&](const std::vector<unsigned int> &children_fe_indices) {
+          [this](const std::vector<unsigned int> &children_fe_indices) {
             return dealii::internal::hp::DoFHandlerImplementation::
               Implementation::determine_fe_from_children<dim, spacedim>(
                 children_fe_indices, fe_collection);
@@ -2273,7 +2273,7 @@ namespace hp
             CellDataTransfer<dim, spacedim, std::vector<unsigned int>>>(
           *distributed_tria,
           /*transfer_variable_size_data=*/false,
-          [&](const std::vector<unsigned int> &children_fe_indices) {
+          [this](const std::vector<unsigned int> &children_fe_indices) {
             return dealii::internal::hp::DoFHandlerImplementation::
               Implementation::determine_fe_from_children<dim, spacedim>(
                 children_fe_indices, fe_collection);

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.