]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix rather subtle bug.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Apr 2000 15:26:56 +0000 (15:26 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 17 Apr 2000 15:26:56 +0000 (15:26 +0000)
git-svn-id: https://svn.dealii.org/trunk@2735 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_tools.cc

index 6fb8885849d034aa0c6aab54e8b462b7fc27db30..075c2a66524698311641efc64044f96f62bc05cf 100644 (file)
@@ -723,6 +723,9 @@ DoFTools::extract_boundary_dofs (const DoFHandler<dim> &dof_handler,
          ExcWrongSize (component_select.size(),
                        dof_handler.get_fe().n_components()));
 
+                                  // clear and reset array by default
+                                  // values
+  selected_dofs.clear ();
   selected_dofs.resize (dof_handler.n_dofs(), false);
   vector<unsigned int> face_dof_indices (dof_handler.get_fe().dofs_per_face);
   for (DoFHandler<dim>::active_cell_iterator cell=dof_handler.begin_active();
@@ -751,6 +754,9 @@ DoFTools::extract_boundary_dofs (const DoFHandler<1> &dof_handler,
          ExcWrongSize (component_select.size(),
                        dof_handler.get_fe().n_components()));
          
+                                  // clear and reset array by default
+                                  // values
+  selected_dofs.clear ();
   selected_dofs.resize (dof_handler.n_dofs(), false);
 
   Assert (dof_handler.get_fe().dofs_per_face == dof_handler.get_fe().dofs_per_vertex,

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.