mirror of
https://github.com/NGSolve/netgen.git
synced 2025-01-27 13:20: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)
|
if (mparam.perfstepsstart <= MESHCONST_ANALYSE)
|
||||||
{
|
{
|
||||||
// delete mesh;
|
if(mesh.get() == nullptr)
|
||||||
// mesh = make_shared<Mesh>();
|
mesh = make_shared<Mesh>();
|
||||||
mesh->geomtype = Mesh::GEOM_OCC;
|
mesh->geomtype = Mesh::GEOM_OCC;
|
||||||
|
|
||||||
OCCSetLocalMeshSize(geom,*mesh);
|
OCCSetLocalMeshSize(geom,*mesh);
|
||||||
|
Loading…
Reference in New Issue
Block a user