From: wolf Date: Tue, 1 Oct 2002 15:55:48 +0000 (+0000) Subject: Same for the 1d function. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=347795947fcc75536e32b7485d49971cf3e52b76;p=dealii-svn.git Same for the 1d function. git-svn-id: https://svn.dealii.org/trunk@6573 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/dofs/dof_tools.cc b/deal.II/deal.II/source/dofs/dof_tools.cc index 52ae19eae4..03594a9080 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -1204,6 +1204,13 @@ DoFTools::extract_boundary_dofs (const DoFHandler<1> &dof_handler, const bool check_right_vertex = ((boundary_indicators.size() == 0) || (boundary_indicators.find(1) != boundary_indicators.end())); + + // see whether we have to check + // whether a certain vector + // component is selected, or all + const bool check_vector_component + = (component_select != std::vector(component_select.size(), + true)); // loop over coarse grid cells for (DoFHandler<1>::cell_iterator cell=dof_handler.begin(0); @@ -1213,15 +1220,19 @@ DoFTools::extract_boundary_dofs (const DoFHandler<1> &dof_handler, if (check_left_vertex) if (cell->neighbor(0) == dof_handler.end()) for (unsigned int i=0; ivertex_dof_index(0,i)] = true; // check right-most vertex if (check_right_vertex) if (cell->neighbor(1) == dof_handler.end()) for (unsigned int i=0; ivertex_dof_index(1,i)] = true; }; };