]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Set variable to correct size before passing to DoFTools::count_dofs_per_component.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Feb 2009 16:19:21 +0000 (16:19 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 10 Feb 2009 16:19:21 +0000 (16:19 +0000)
git-svn-id: https://svn.dealii.org/trunk@18348 0785d39b-7218-0410-832d-ea1e28bc413d

tests/bits/anna_6.cc

index 5ea9f202a716ecb303404a2e5f1c3cd1af5bf3b9..4d478705b30b66f3923f76d4acb25bc84bb6f73d 100644 (file)
@@ -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 <int dim>
 void ImposeBC<dim>::get_ready () 
 {  
   dof_handler.distribute_dofs (fe);
-  std::vector<unsigned int>    dofs_per_comp;
+  std::vector<unsigned int>    dofs_per_comp (fe.n_components());
   DoFTools::count_dofs_per_component(dof_handler, dofs_per_comp);
        
                                    // For an FESystem with Nedelec-elements as

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.