From: Guido Kanschat Date: Tue, 28 Mar 2006 06:08:32 +0000 (+0000) Subject: boundary cells have no neighbors X-Git-Tag: v8.0.0~12001 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=454fbbd0e275c373c84a11500c39067ad7122765;p=dealii.git boundary cells have no neighbors git-svn-id: https://svn.dealii.org/trunk@12707 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index a6850106cd..ca7ff7755c 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -897,6 +897,8 @@ DoFTools::compute_row_length_vector( // flux contributions. for (unsigned int iface=0;iface::faces_per_cell;++iface) { + if (cell->at_boundary(iface)) + continue; const typename DH::cell_iterator neighbor = cell->neighbor(iface); const FiniteElement& nfe = neighbor->get_fe(); typename DH::face_iterator face = cell->face(iface);