From: 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-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4c2e6224c806713a20f972b401994474deca4be0;p=dealii-svn.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);