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

don't crash if GVertex has no mesh_vertices

parent 216a9aa6
Branches
Tags
No related merge requests found
......@@ -128,8 +128,10 @@ void buildMeshGenerationDataStructures(GFace *gf,
std::list<GVertex*> emb_vertx = gf->embeddedVertices();
std::list<GVertex*>::iterator itvx = emb_vertx.begin();
while(itvx != emb_vertx.end()){
if((*itvx)->mesh_vertices.size()){
MVertex *v = *((*itvx)->mesh_vertices.begin());
vSizesMap[v] = std::min(vSizesMap[v], (*itvx)->prescribedMeshSizeAtVertex());
}
++itvx;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment