]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix an incorrect conversion to avoid a deprecated function.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 03:30:43 +0000 (03:30 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 7 Jan 2013 03:30:43 +0000 (03:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@27953 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/numerics/vector_tools.templates.h

index 33c30e9dfa4346943159c810d287b6f334ed03df..322f756eef696a9b35b0270f5bf4ee89237e2713 100644 (file)
@@ -1,7 +1,7 @@
 //---------------------------------------------------------------------------
 //    $Id$
 //
-//    Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 by the deal.II authors
+//    Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 by the deal.II authors
 //
 //    This file is subject to QPL and may not be  distributed
 //    without copyright and license information. Please refer
@@ -2146,7 +2146,8 @@ namespace VectorTools
       return;
 
     // set up sparsity structure
-    CompressedSparsityPattern c_sparsity(dof.n_dofs());
+    CompressedSparsityPattern c_sparsity(dof.n_boundary_dofs (boundary_functions),
+                                        dof.n_boundary_dofs (boundary_functions));
     DoFTools::make_boundary_sparsity_pattern (dof,
                                               boundary_functions,
                                               dof_to_boundary_mapping,

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.