From 5148d63066985ed5504a5d240a2248c73bfbf930 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 17 Apr 2000 15:26:56 +0000 Subject: [PATCH] Fix rather subtle bug. git-svn-id: https://svn.dealii.org/trunk@2735 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/deal.II/source/dofs/dof_tools.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 6fb8885849..075c2a6652 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -723,6 +723,9 @@ DoFTools::extract_boundary_dofs (const DoFHandler &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 face_dof_indices (dof_handler.get_fe().dofs_per_face); for (DoFHandler::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, -- 2.39.5