From 0a82f00594d67ba9b4209fb8b2f63c592e41abdd Mon Sep 17 00:00:00 2001 From: bangerth Date: Fri, 31 Oct 2008 21:32:11 +0000 Subject: [PATCH] Need to initialize the array with invalid values. git-svn-id: https://svn.dealii.org/trunk@17452 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/lac/source/sparsity_tools.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/deal.II/lac/source/sparsity_tools.cc b/deal.II/lac/source/sparsity_tools.cc index b3308e23b1..ccb4558d48 100644 --- a/deal.II/lac/source/sparsity_tools.cc +++ b/deal.II/lac/source/sparsity_tools.cc @@ -132,7 +132,12 @@ namespace SparsityTools // in the last round. Default to starting // points std::vector last_round_dofs (starting_indices); - + + // initialize the new_indices array with + // invalid values + std::fill (new_indices.begin(), new_indices.end(), + numbers::invalid_unsigned_int); + // delete disallowed elements for (unsigned int i=0; i