From 96bc5a0c182c2ca15c966ba653238509f9440e1e Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Fri, 25 Aug 2017 13:45:38 -0400 Subject: [PATCH] make mesh_loop CopyData and ScratchData args const refs --- include/deal.II/meshworker/mesh_loop.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/meshworker/mesh_loop.h b/include/deal.II/meshworker/mesh_loop.h index c2f0b99dbb..256f1a8834 100644 --- a/include/deal.II/meshworker/mesh_loop.h +++ b/include/deal.II/meshworker/mesh_loop.h @@ -119,8 +119,8 @@ namespace MeshWorker const typename identity>::type &cell_worker, const typename identity>::type &copier, - ScratchData &scratch_data, - CopyData ©_data, + const ScratchData &sample_scratch_data, + const CopyData &sample_copy_data, const AssembleFlags flags = assemble_own_cells, @@ -161,7 +161,7 @@ namespace MeshWorker 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); @@ -306,7 +306,7 @@ namespace MeshWorker // Submit to workstream WorkStream::run(begin, end, cell_action, copier, - scratch_data, copy_data, + sample_scratch_data, sample_copy_data, queue_length, chunk_size); } } -- 2.39.5