From: Guido Kanschat Date: Mon, 8 Aug 2011 10:30:33 +0000 (+0000) Subject: only initialize cell data if cells are integrated X-Git-Tag: v8.0.0~3740 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=247deeba8741806d564ee0c3d3e2a1f450159967;p=dealii.git only initialize cell data if cells are integrated git-svn-id: https://svn.dealii.org/trunk@24028 0785d39b-7218-0410-832d-ea1e28bc413d --- 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