From: Timo Heister Date: Sun, 13 Aug 2017 22:13:34 +0000 (-0600) Subject: reset the CopyData object X-Git-Tag: v9.0.0-rc1~1271^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2549223c1b3125b85676b134023e48d627aaf4ec;p=dealii.git reset the CopyData object --- 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);