From 26c41e7932cd0b83f444311266a135ce6fd7512a Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 3 Nov 2016 12:16:56 -0600 Subject: [PATCH] Initialize a member variable to invalid values. --- source/grid/cell_id.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/grid/cell_id.cc b/source/grid/cell_id.cc index fa42f4952a..2711c22b20 100644 --- a/source/grid/cell_id.cc +++ b/source/grid/cell_id.cc @@ -26,7 +26,14 @@ CellId::CellId() : coarse_cell_id(numbers::invalid_unsigned_int), n_child_indices(numbers::invalid_unsigned_int) -{} +{ + // initialize the child indices to invalid values + // (the only allowed values are between zero and + // GeometryInfo::max_children_per_cell) + for (unsigned int i=0; i::max(); + +} -- 2.39.5