From: Timo Heister Date: Fri, 25 Aug 2017 17:45:38 +0000 (-0400) Subject: make mesh_loop CopyData and ScratchData args const refs X-Git-Tag: v9.0.0-rc1~1167^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=96bc5a0c182c2ca15c966ba653238509f9440e1e;p=dealii.git make mesh_loop CopyData and ScratchData args const refs --- 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); } }