OCCGenerateMesh: Initialize mesh if nullptr is given

This commit is contained in:
Matthias Hochsteger 2018-01-24 10:53:34 +01:00
parent 93840787b3
commit d77ec67b9f

View File

@ -1295,8 +1295,8 @@ namespace netgen
if (mparam.perfstepsstart <= MESHCONST_ANALYSE)
{
// delete mesh;
// mesh = make_shared<Mesh>();
if(mesh.get() == nullptr)
mesh = make_shared<Mesh>();
mesh->geomtype = Mesh::GEOM_OCC;
OCCSetLocalMeshSize(geom,*mesh);