// 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
cell, scratch_data, copy_data, error_indicators, face_integrals);
};
- auto copier = std::function<void(const WeightedResidualCopyData &)>();
+ auto do_nothing_copier =
+ std::function<void(const WeightedResidualCopyData &)>();
// Then hand it all off to WorkStream::run() to compute the
// estimators for all cells in parallel:
DualSolver<dim>::dof_handler.begin_active(),
DualSolver<dim>::dof_handler.end(),
worker,
- copier,
+ do_nothing_copier,
WeightedResidualScratchData(*DualSolver<dim>::fe,
*DualSolver<dim>::quadrature,
*DualSolver<dim>::face_quadrature,
data);
};
- auto copier = [=](const Assembly::CopyData::TemperatureRHS<dim> &data) {
+ auto copier = [this](const Assembly::CopyData::TemperatureRHS<dim> &data) {
this->copy_local_to_global_temperature_rhs(data);
};