]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a silly bug. Seems as if this part of the program has never been tested.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Jun 1998 11:13:22 +0000 (11:13 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 29 Jun 1998 11:13:22 +0000 (11:13 +0000)
git-svn-id: https://svn.dealii.org/trunk@417 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/vectors.cc

index 1e886e8725b2d21443c7d6ab8e7e5ebb90b14fc6..7f097ba96e26312cd1fa445bc429ac7b159d68d6 100644 (file)
@@ -121,13 +121,14 @@ void VectorTools<dim>::project (const DoFHandler<dim>    &dof,
                                            endf = dof.end_face();
       vector<int> face_dof_indices (fe.dofs_per_face);
       for (; face!=endf; ++face)
-       {
-         face->get_dof_indices (face_dof_indices);
-         for (unsigned int i=0; i<fe.dofs_per_face; ++i)
-                                            // enter zero boundary values
-                                            // for all boundary nodes
-           boundary_values[face_dof_indices[i]] = 0.;
-       };
+       if (face->at_boundary())
+         {
+           face->get_dof_indices (face_dof_indices);
+           for (unsigned int i=0; i<fe.dofs_per_face; ++i)
+                                              // enter zero boundary values
+                                              // for all boundary nodes
+             boundary_values[face_dof_indices[i]] = 0.;
+         };
     }
   else
                                     // no homogeneous boundary values

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.