From: bangerth Date: Tue, 10 Feb 2009 16:19:21 +0000 (+0000) Subject: Set variable to correct size before passing to DoFTools::count_dofs_per_component. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a0cc46c877354fe1e39befed1176c827812d30;p=dealii-svn.git Set variable to correct size before passing to DoFTools::count_dofs_per_component. git-svn-id: https://svn.dealii.org/trunk@18348 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/bits/anna_6.cc b/tests/bits/anna_6.cc index 5ea9f202a7..4d478705b3 100644 --- a/tests/bits/anna_6.cc +++ b/tests/bits/anna_6.cc @@ -2,7 +2,7 @@ // $Id$ // Version: $Name$ // -// Copyright (C) 2002, 2003, 2004, 2005, 2008 by the deal.II authors and Anna Schneebeli +// Copyright (C) 2002, 2003, 2004, 2005, 2008, 2009 by the deal.II authors and Anna Schneebeli // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer @@ -155,7 +155,7 @@ template void ImposeBC::get_ready () { dof_handler.distribute_dofs (fe); - std::vector dofs_per_comp; + std::vector dofs_per_comp (fe.n_components()); DoFTools::count_dofs_per_component(dof_handler, dofs_per_comp); // For an FESystem with Nedelec-elements as