From: young Date: Fri, 10 Jun 2011 10:00:11 +0000 (+0000) Subject: Fix seeking boundary dofs X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59e70f257f443558cf332074ffebc3095ea45261;p=dealii-svn.git Fix seeking boundary dofs git-svn-id: https://svn.dealii.org/trunk@23804 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/dofs/dof_tools.cc b/deal.II/source/dofs/dof_tools.cc index d75b19db14..3fe723ba72 100644 --- a/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/source/dofs/dof_tools.cc @@ -5728,7 +5728,7 @@ namespace DoFTools "zero or equal to the number of components in the finite " "element.")); - const unsigned int n_components = DoFTools::n_components(dof); + const unsigned int n_components = DoFTools::n_components (dof); // set the component mask to either // the original value or a vector @@ -5753,8 +5753,9 @@ namespace DoFTools const FiniteElement &fe = cell->get_fe(); typename DH::face_iterator face = cell->face(face_no); - if (face->boundary_indicator () == 0) - // face is of the right component + + // if face is on the boundary + if (face->at_boundary ()) { // get indices and physical // location on this face