]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix seeking boundary dofs
authoryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jun 2011 10:00:11 +0000 (10:00 +0000)
committeryoung <young@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 10 Jun 2011 10:00:11 +0000 (10:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@23804 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/dofs/dof_tools.cc

index d75b19db1443736fb2e068de5eaa2d3b6e09ff00..3fe723ba722a8ee0bc4404121c4add616e8c2c3d 100644 (file)
@@ -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<dim,spacedim> &fe = cell->get_fe();
 
          typename DH<dim,spacedim>::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

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.