From 4af76e81a27e3262a202cc6c5fbd4e211c6623db Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 20 Sep 2019 17:06:43 -0600 Subject: [PATCH] Just capture this --- source/hp/dof_handler.cc | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/source/hp/dof_handler.cc b/source/hp/dof_handler.cc index 98f6373e8f..edd2344bd1 100644 --- a/source/hp/dof_handler.cc +++ b/source/hp/dof_handler.cc @@ -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(*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>>( *distributed_tria, /*transfer_variable_size_data=*/false, - [&](const std::vector &children_fe_indices) { + [this](const std::vector &children_fe_indices) { return dealii::internal::hp::DoFHandlerImplementation:: Implementation::determine_fe_from_children( children_fe_indices, fe_collection); @@ -2196,7 +2196,7 @@ namespace hp CellDataTransfer>>( *distributed_tria, /*transfer_variable_size_data=*/false, - [&](const std::vector &children_fe_indices) { + [this](const std::vector &children_fe_indices) { return dealii::internal::hp::DoFHandlerImplementation:: Implementation::determine_fe_from_children( children_fe_indices, fe_collection); @@ -2273,7 +2273,7 @@ namespace hp CellDataTransfer>>( *distributed_tria, /*transfer_variable_size_data=*/false, - [&](const std::vector &children_fe_indices) { + [this](const std::vector &children_fe_indices) { return dealii::internal::hp::DoFHandlerImplementation:: Implementation::determine_fe_from_children( children_fe_indices, fe_collection); -- 2.39.5