From 4279f0a944b89a6412099d899056b4c7a1eb6911 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sat, 17 Jun 2017 19:17:16 -0600 Subject: [PATCH] Replace an explicit by an implicit loop. --- source/dofs/dof_handler.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/dofs/dof_handler.cc b/source/dofs/dof_handler.cc index c0b2561007..32d36747ce 100644 --- a/source/dofs/dof_handler.cc +++ b/source/dofs/dof_handler.cc @@ -1564,8 +1564,7 @@ void DoFHandler::MGVertexDoFs::init (const unsigned int cl, const unsigned int n_indices = n_levels * dofs_per_vertex; indices = new types::global_dof_index[n_indices]; - for (unsigned int i = 0; i < n_indices; ++i) - indices[i] = DoFHandler::invalid_dof_index; + std::fill (indices, indices+n_indices, DoFHandler::invalid_dof_index); indices_offset = new types::global_dof_index[n_levels]; for (unsigned int i = 0; i < n_levels; ++i) -- 2.39.5