From: Wolfgang Bangerth Date: Thu, 3 Nov 2016 18:16:56 +0000 (-0600) Subject: Initialize a member variable to invalid values. X-Git-Tag: v8.5.0-rc1~488^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26c41e7932cd0b83f444311266a135ce6fd7512a;p=dealii.git Initialize a member variable to invalid values. --- 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(); + +}