From b88a67410b9c0b02de88c01eff7a130c6e2c7eed Mon Sep 17 00:00:00 2001 From: bangerth Date: Mon, 7 Jan 2013 03:30:43 +0000 Subject: [PATCH] Fix an incorrect conversion to avoid a deprecated function. git-svn-id: https://svn.dealii.org/trunk@27953 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/numerics/vector_tools.templates.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deal.II/include/deal.II/numerics/vector_tools.templates.h b/deal.II/include/deal.II/numerics/vector_tools.templates.h index 33c30e9dfa..322f756eef 100644 --- a/deal.II/include/deal.II/numerics/vector_tools.templates.h +++ b/deal.II/include/deal.II/numerics/vector_tools.templates.h @@ -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, -- 2.39.5