Skip to content
Snippets Groups Projects
Commit 60dbe9f3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

don't crash if not categorized

parent fd1edc03
No related branches found
No related tags found
No related merge requests found
...@@ -124,6 +124,8 @@ static void gmsh2MMG(GRegion *gr, MMG_pMesh mmg, MMG_pSol sol, ...@@ -124,6 +124,8 @@ static void gmsh2MMG(GRegion *gr, MMG_pMesh mmg, MMG_pSol sol,
MVertex *v = *it; MVertex *v = *it;
double U = 0, V = 0; double U = 0, V = 0;
if (!v->onWhat()) continue;
if (v->onWhat()->dim() == 1){ if (v->onWhat()->dim() == 1){
v->getParameter(0,U); v->getParameter(0,U);
} }
...@@ -131,6 +133,7 @@ static void gmsh2MMG(GRegion *gr, MMG_pMesh mmg, MMG_pSol sol, ...@@ -131,6 +133,7 @@ static void gmsh2MMG(GRegion *gr, MMG_pMesh mmg, MMG_pSol sol,
v->getParameter(0,U); v->getParameter(0,U);
v->getParameter(1,V); v->getParameter(1,V);
} }
//double lc = BGM_MeshSize(v->onWhat(), U,V,v->x(), v->y(), v->z()); //double lc = BGM_MeshSize(v->onWhat(), U,V,v->x(), v->y(), v->z());
SMetric3 m = BGM_MeshMetric(v->onWhat(), U,V,v->x(), v->y(), v->z()); SMetric3 m = BGM_MeshMetric(v->onWhat(), U,V,v->x(), v->y(), v->z());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment