From e3da505c9bfa17f9c138ccb80b04d64a3f4719ca Mon Sep 17 00:00:00 2001 From: kanschat Date: Mon, 8 Aug 2011 10:30:33 +0000 Subject: [PATCH] only initialize cell data if cells are integrated git-svn-id: https://svn.dealii.org/trunk@24028 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/numerics/mesh_worker_loop.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deal.II/include/deal.II/numerics/mesh_worker_loop.h b/deal.II/include/deal.II/numerics/mesh_worker_loop.h index 35e143e1af..e1a5c2de3c 100644 --- a/deal.II/include/deal.II/numerics/mesh_worker_loop.h +++ b/deal.II/include/deal.II/numerics/mesh_worker_loop.h @@ -110,7 +110,8 @@ namespace MeshWorker dof_info.reset(); dof_info.cell.reinit(cell); - info.cell.reinit(dof_info.cell); + if (integrate_cell) + info.cell.reinit(dof_info.cell); // Execute this, if cells // have to be dealt with // before faces -- 2.39.5