From: bangerth Date: Sat, 18 Oct 2008 03:41:44 +0000 (+0000) Subject: Fix thinko: extract_subdomain_dofs may register the same dof for several subdomains... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52db8b53122dc52c9fb4f295d2c90ab111aaaf55;p=dealii-svn.git Fix thinko: extract_subdomain_dofs may register the same dof for several subdomains. This is not what we wanted in count_subdomain_association. git-svn-id: https://svn.dealii.org/trunk@17272 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 559c480adc..980f15b1c9 100644 --- a/deal.II/deal.II/source/dofs/dof_tools.cc +++ b/deal.II/deal.II/source/dofs/dof_tools.cc @@ -3800,8 +3800,8 @@ DoFTools::count_dofs_with_subdomain_association (const DH &dof_handler } #endif - std::vector subdomain_association (dof_handler.n_dofs()); - extract_subdomain_dofs (dof_handler, subdomain, subdomain_association); + std::vector subdomain_association (dof_handler.n_dofs()); + get_subdomain_association (dof_handler, subdomain_association); std::vector component_association (dof_handler.n_dofs()); for (unsigned int c=0; c