From 4c2e6224c806713a20f972b401994474deca4be0 Mon Sep 17 00:00:00 2001 From: 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