diff --git a/libsrc/meshing/localh.cpp b/libsrc/meshing/localh.cpp index 3afe8e25..27700630 100644 --- a/libsrc/meshing/localh.cpp +++ b/libsrc/meshing/localh.cpp @@ -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; diff --git a/libsrc/meshing/localh.hpp b/libsrc/meshing/localh.hpp index caff6540..7d2ec433 100644 --- a/libsrc/meshing/localh.hpp +++ b/libsrc/meshing/localh.hpp @@ -20,9 +20,9 @@ namespace netgen /// half edgelength float h2; /// - GradingBox * childs[8]; + GradingBox * childs[8] = {nullptr}; /// - GradingBox * father; + GradingBox * father = nullptr; /// double hopt; ///