From: Timo Heister Date: Sat, 1 Jun 2013 20:24:19 +0000 (+0000) Subject: fix another spot where we ask an inactive cell for the subdomain X-Git-Tag: v8.0.0~336 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d4c8bde35321ae1fda78e99272b1b7ba46a09bb;p=dealii.git 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 --- 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);