From dd1dd956153c9623c6713f0a26bf4b6403a65a99 Mon Sep 17 00:00:00 2001 From: Marc Fehling Date: Tue, 11 Feb 2020 20:23:34 +0100 Subject: [PATCH] parallel::CellWeights: Capture values, not references. --- source/distributed/cell_weights.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/distributed/cell_weights.cc b/source/distributed/cell_weights.cc index 9f78643207..2980844f31 100644 --- a/source/distributed/cell_weights.cc +++ b/source/distributed/cell_weights.cc @@ -79,7 +79,7 @@ namespace parallel CellWeights::ndofs_weighting( const std::pair &coefficients) { - return [&coefficients]( + return [coefficients]( const typename hp::DoFHandler::cell_iterator &, const FiniteElement &future_fe) -> unsigned int { const float result = @@ -101,7 +101,7 @@ namespace parallel CellWeights::ndofs_weighting( const std::vector> &coefficients) { - return [&coefficients]( + return [coefficients]( const typename hp::DoFHandler::cell_iterator &, const FiniteElement &future_fe) -> unsigned int { float result = 0; @@ -139,7 +139,7 @@ namespace parallel ExcMessage( "parallel::CellWeights requires a parallel::TriangulationBase object.")); - return [&dof_handler, tria, &weighting_function]( + return [&dof_handler, tria, weighting_function]( const typename Triangulation::cell_iterator &cell, const typename Triangulation::CellStatus status) -> unsigned int { -- 2.39.5