mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-26 21:00:34 +05:00
OCCGenerateMesh: Initialize mesh if nullptr is given
This commit is contained in:
parent
93840787b3
commit
d77ec67b9f
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user