initialize childs in GradingBox also in default ctor

This commit is contained in:
Matthias Hochsteger 2021-06-08 11:54:31 +02:00
parent a96a1e4624
commit eee7a6d211
2 changed files with 2 additions and 6 deletions

View File

@ -11,10 +11,6 @@ namespace netgen
for (int i = 0; i < 3; i++) for (int i = 0; i < 3; i++)
xmid[i] = 0.5 * (ax1[i] + ax2[i]); xmid[i] = 0.5 * (ax1[i] + ax2[i]);
for (int i = 0; i < 8; i++)
childs[i] = NULL;
father = NULL;
flags.cutboundary = 0; flags.cutboundary = 0;
flags.isinner = 0; flags.isinner = 0;
flags.oldcell = 0; flags.oldcell = 0;

View File

@ -20,9 +20,9 @@ namespace netgen
/// half edgelength /// half edgelength
float h2; float h2;
/// ///
GradingBox * childs[8]; GradingBox * childs[8] = {nullptr};
/// ///
GradingBox * father; GradingBox * father = nullptr;
/// ///
double hopt; double hopt;
/// ///