From: heltai Date: Wed, 16 May 2007 00:32:30 +0000 (+0000) Subject: Reverted all changes by luca. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ca02bae6e3f226b0a2a771d780e57737fdba24e9;p=dealii-svn.git Reverted all changes by luca. git-svn-id: https://svn.dealii.org/trunk@14676 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 59c4b20e54..a47c140e62 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -1483,9 +1483,9 @@ namespace internal /** - * Copy constraints into a constraint - * matrix object. - * + * Copy constraints into a constraint + * matrix object. + * * This function removes zero * constraints and those, which * constrain a DoF which was @@ -3676,6 +3676,9 @@ DoFTools::count_dofs_per_component ( { const FiniteElement& fe = dof_handler.get_fe(); const unsigned int n_components = fe.n_components(); + dofs_per_component.resize (n_components); + std::fill (dofs_per_component.begin(), dofs_per_component.end(), 0U); + // If the empty vector was given as // default argument, set up this // vector as identity. @@ -3688,21 +3691,6 @@ DoFTools::count_dofs_per_component ( Assert(target_component.size()==n_components, ExcDimensionMismatch(target_component.size(),n_components)); - - - // Check that target components - // contains sensible information - // and reset the counters for - // dofs_per_component - unsigned int size_dst = dofs_per_component.size(); - for(unsigned int i=0; i& fe = dof_handler.get_fe(); const unsigned int n_blocks = fe.n_blocks(); - unsigned int size_dst = dofs_per_block.size(); + dofs_per_block.resize (n_blocks); + std::fill (dofs_per_block.begin(), dofs_per_block.end(), 0U); // If the empty vector was given as // default argument, set up this @@ -3800,22 +3785,14 @@ DoFTools::count_dofs_per_block ( Assert(target_block.size()==n_blocks, ExcDimensionMismatch(target_block.size(),n_blocks)); - - // Check constistency and reset - // counters - for(unsigned int i=0; i