mirror of
https://github.com/NGSolve/netgen.git
synced 2024-12-24 04:50:34 +05:00
initialize childs in GradingBox also in default ctor
This commit is contained in:
parent
a96a1e4624
commit
eee7a6d211
@ -11,10 +11,6 @@ namespace netgen
|
||||
for (int i = 0; i < 3; 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.isinner = 0;
|
||||
flags.oldcell = 0;
|
||||
|
@ -20,9 +20,9 @@ namespace netgen
|
||||
/// half edgelength
|
||||
float h2;
|
||||
///
|
||||
GradingBox * childs[8];
|
||||
GradingBox * childs[8] = {nullptr};
|
||||
///
|
||||
GradingBox * father;
|
||||
GradingBox * father = nullptr;
|
||||
///
|
||||
double hopt;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user