const typename identity<std::function<void (const CellIteratorType &, ScratchData &, CopyData &)>>::type &cell_worker,
const typename identity<std::function<void (const CopyData &)>>::type &copier,
- ScratchData &scratch_data,
- CopyData ©_data,
+ const ScratchData &sample_scratch_data,
+ const CopyData &sample_copy_data,
const AssembleFlags flags = assemble_own_cells,
auto cell_action = [&] (const CellIteratorType &cell, ScratchData &scratch, CopyData ©)
{
// First reset the CopyData class to the empty copy_data given by the user.
- copy = copy_data;
+ copy = sample_copy_data;
const bool ignore_subdomain = (cell->get_triangulation().locally_owned_subdomain()
== numbers::invalid_subdomain_id);
// Submit to workstream
WorkStream::run(begin, end,
cell_action, copier,
- scratch_data, copy_data,
+ sample_scratch_data, sample_copy_data,
queue_length, chunk_size);
}
}