diff --git a/libsrc/meshing/meshclass.hpp b/libsrc/meshing/meshclass.hpp index 59ed7b85..e3b45b9b 100644 --- a/libsrc/meshing/meshclass.hpp +++ b/libsrc/meshing/meshclass.hpp @@ -797,7 +797,7 @@ namespace netgen double area; public: CSurfaceArea (const Mesh & amesh) - : mesh(amesh), valid(false) { ; } + : mesh(amesh), valid(false), area(0.) { ; } void Add (const Element2d & sel) { diff --git a/libsrc/meshing/meshing2.cpp b/libsrc/meshing/meshing2.cpp index bda90593..edf4770d 100644 --- a/libsrc/meshing/meshing2.cpp +++ b/libsrc/meshing/meshing2.cpp @@ -675,7 +675,7 @@ namespace netgen plainpoints.Append (newpout); - const auto& pout3d = locpoints.Get(pouti); + auto pout3d = locpoints.Get(pouti); locpoints.Append (pout3d); plainzones.Append (0);