From 2549223c1b3125b85676b134023e48d627aaf4ec Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 13 Aug 2017 16:13:34 -0600 Subject: [PATCH] reset the CopyData object --- include/deal.II/meshworker/mesh_loop.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/deal.II/meshworker/mesh_loop.h b/include/deal.II/meshworker/mesh_loop.h index d53249613e..51a7f756a9 100644 --- a/include/deal.II/meshworker/mesh_loop.h +++ b/include/deal.II/meshworker/mesh_loop.h @@ -158,9 +158,11 @@ namespace MeshWorker Assert((!boundary_worker) == !(flags & assemble_boundary_faces), ExcMessage("If you specify a boundary_worker, assemble_boundary_faces needs to be set.")); - 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; + const bool ignore_subdomain = (cell->get_triangulation().locally_owned_subdomain() == numbers::invalid_subdomain_id); -- 2.39.5