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

save embedded entities in unrolled volumes

parent e339c0c2
No related branches found
No related tags found
No related merge requests found
...@@ -269,6 +269,18 @@ void GRegion::writeGEO(FILE *fp) ...@@ -269,6 +269,18 @@ void GRegion::writeGEO(FILE *fp)
fprintf(fp, "Volume(%d) = {%d};\n", tag(), tag()); fprintf(fp, "Volume(%d) = {%d};\n", tag(), tag());
} }
for(std::list<GFace*>::iterator it = embedded_faces.begin();
it != embedded_faces.end(); it++)
fprintf(fp, "Surface {%d} In Volume {%d};\n", (*it)->tag(), tag());
for(std::list<GEdge*>::iterator it = embedded_edges.begin();
it != embedded_edges.end(); it++)
fprintf(fp, "Line {%d} In Volume {%d};\n", (*it)->tag(), tag());
for(std::list<GVertex*>::iterator it = embedded_vertices.begin();
it != embedded_vertices.end(); it++)
fprintf(fp, "Point {%d} In Volume {%d};\n", (*it)->tag(), tag());
if(meshAttributes.method == MESH_TRANSFINITE){ if(meshAttributes.method == MESH_TRANSFINITE){
fprintf(fp, "Transfinite Volume {%d}", tag()); fprintf(fp, "Transfinite Volume {%d}", tag());
if(meshAttributes.corners.size()){ if(meshAttributes.corners.size()){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment