From e0db6fdac07a0953329910b4dbdfd24188738f52 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 18 Oct 2019 10:53:26 -0400 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Wolfgang Bangerth --- examples/step-13/step-13.cc | 2 +- examples/step-14/step-14.cc | 5 +++-- examples/step-32/step-32.cc | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/examples/step-13/step-13.cc b/examples/step-13/step-13.cc index c80a6ca6eb..688d598e71 100644 --- a/examples/step-13/step-13.cc +++ b/examples/step-13/step-13.cc @@ -797,7 +797,7 @@ namespace Step13 // capture default or to list all the variables that are to be bound to // the lambda explicitly. For the sake of clarity we decided to omit // the capture default here, but that capture list could equally well be - // `[&]` meaning that all used variables are copied into the lambda by + // `[&]`, meaning that all used variables are copied into the lambda by // reference. // // At this point, we have assembled the matrix and condensed diff --git a/examples/step-14/step-14.cc b/examples/step-14/step-14.cc index 08a9f07a07..4f73f70132 100644 --- a/examples/step-14/step-14.cc +++ b/examples/step-14/step-14.cc @@ -2201,7 +2201,8 @@ namespace Step14 cell, scratch_data, copy_data, error_indicators, face_integrals); }; - auto copier = std::function(); + auto do_nothing_copier = + std::function(); // Then hand it all off to WorkStream::run() to compute the // estimators for all cells in parallel: @@ -2209,7 +2210,7 @@ namespace Step14 DualSolver::dof_handler.begin_active(), DualSolver::dof_handler.end(), worker, - copier, + do_nothing_copier, WeightedResidualScratchData(*DualSolver::fe, *DualSolver::quadrature, *DualSolver::face_quadrature, diff --git a/examples/step-32/step-32.cc b/examples/step-32/step-32.cc index 42ad54437b..9f402a3769 100644 --- a/examples/step-32/step-32.cc +++ b/examples/step-32/step-32.cc @@ -2728,7 +2728,7 @@ namespace Step32 data); }; - auto copier = [=](const Assembly::CopyData::TemperatureRHS &data) { + auto copier = [this](const Assembly::CopyData::TemperatureRHS &data) { this->copy_local_to_global_temperature_rhs(data); }; -- 2.39.5