From 5d4c8bde35321ae1fda78e99272b1b7ba46a09bb Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 1 Jun 2013 20:24:19 +0000 Subject: [PATCH] fix another spot where we ask an inactive cell for the subdomain git-svn-id: https://svn.dealii.org/trunk@29723 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/source/dofs/dof_tools.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index dab901128c..c86fc1dc3d 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -609,8 +609,10 @@ namespace DoFTools // is not locally owned - otherwise, we touch each // face twice and hence put the indices the other way // around - if (cell->neighbor(face)->subdomain_id() != - cell->subdomain_id()) + if (!cell->neighbor(face)->active() + || + (cell->neighbor(face)->subdomain_id() != + cell->subdomain_id())) constraints.add_entries_local_to_global (dofs_on_other_cell, dofs_on_this_cell, sparsity, keep_constrained_dofs); -- 2.39.5