From a454b63b0e3b04cfc7cd3980288c8ea476314556 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Tue, 10 Feb 2009 16:19:21 +0000 Subject: [PATCH] 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 --- tests/bits/anna_6.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5