Merge branch 'occ_init_mesh_ptr' into 'master'

OCCGenerateMesh: Initialize mesh if nullptr is given

See merge request jschoeberl/netgen!76
This commit is contained in:
Joachim Schöberl 2018-01-25 18:52:09 +01:00
commit 356fc6c42f

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);