Threads::TaskGroup<> tasks;
for (unsigned int block = 0; block < n_blocks; ++block)
- tasks += Threads::new_task(
- [&, block] { this->apply_preconditioner(dst, src, &dof_masks[block]); });
+ tasks += Threads::new_task([&, block]() {
+ this->apply_preconditioner(dst, src, &dof_masks[block]);
+ });
tasks.join_all();
}
)
{
// only execute once
- static bool dummy = [] {
+ static bool dummy = []() {
dealii_initialized_kokkos = true;
#if KOKKOS_VERSION >= 30700
const auto settings =
[this]() { this->pre_distributed_transfer_action(); }));
this->tria_listeners_for_transfer.push_back(
this->tria->signals.post_distributed_repartition.connect(
- [this] { this->post_distributed_transfer_action(); }));
+ [this]() { this->post_distributed_transfer_action(); }));
// refinement signals
this->tria_listeners_for_transfer.push_back(
}));
this->tria_listeners_for_transfer.push_back(
this->tria->signals.pre_refinement.connect(
- [this] { this->pre_transfer_action(); }));
+ [this]() { this->pre_transfer_action(); }));
this->tria_listeners_for_transfer.push_back(
this->tria->signals.post_refinement.connect(
- [this] { this->post_transfer_action(); }));
+ [this]() { this->post_transfer_action(); }));
}
else
{
// refinement signals
this->tria_listeners_for_transfer.push_back(
this->tria->signals.pre_refinement.connect(
- [this] { this->pre_transfer_action(); }));
+ [this]() { this->pre_transfer_action(); }));
this->tria_listeners_for_transfer.push_back(
this->tria->signals.post_refinement.connect(
- [this] { this->post_transfer_action(); }));
+ [this]() { this->post_transfer_action(); }));
}
}