From: bangerth Date: Fri, 31 Oct 2008 21:32:11 +0000 (+0000) Subject: Need to initialize the array with invalid values. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a82f00594d67ba9b4209fb8b2f63c592e41abdd;p=dealii-svn.git Need to initialize the array with invalid values. git-svn-id: https://svn.dealii.org/trunk@17452 0785d39b-7218-0410-832d-ea1e28bc413d --- 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