From 961ec0340502e7fb1e43b7ca1e6351c4ce57ea18 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 13 Sep 2019 21:53:43 -0600 Subject: [PATCH] Replace a hand-written loop by std::fill. --- source/grid/tria.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/grid/tria.cc b/source/grid/tria.cc index b355cade3b..fa90b7039f 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -49,8 +49,9 @@ CellData::CellData() : material_id(0) , manifold_id(numbers::flat_manifold_id) { - for (unsigned int i = 0; i < GeometryInfo::vertices_per_cell; ++i) - vertices[i] = numbers::invalid_unsigned_int; + std::fill(std::begin(vertices), + std::end(vertices), + numbers::invalid_unsigned_int); } -- 2.39.5