]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix an error where we didn't size an array correctly.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 2009 16:45:02 +0000 (16:45 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 27 Apr 2009 16:45:02 +0000 (16:45 +0000)
git-svn-id: https://svn.dealii.org/trunk@18750 0785d39b-7218-0410-832d-ea1e28bc413d

tests/umfpack/umfpack_04.cc

index 508c78eb2c22fe6956436c1f47cd7835db43839b..098c8f3c291135140f02f4c0f87fd8a6a9e1f5dd 100644 (file)
@@ -2,7 +2,7 @@
 //    $Id$
 //    Version: $Name$ 
 //
-//    Copyright (C) 2002, 2003, 2004, 2005, 2006 by the deal.II authors
+//    Copyright (C) 2002, 2003, 2004, 2005, 2006, 2009 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -122,7 +122,7 @@ void test ()
   
   deallog << "Number of dofs = " << dof_handler.n_dofs() << std::endl;
   
-  std::vector<unsigned int> size;
+  std::vector<unsigned int> size (dim);
   DoFTools::count_dofs_per_component(dof_handler, size);
   
   BlockSparsityPattern b_sparsity_pattern;

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.