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

fix polygon/polyhedroin output for msh format < 2

parent e06c68ea
No related branches found
No related tags found
No related merge requests found
......@@ -135,7 +135,7 @@ void MPolyhedron::writeMSH(FILE *fp, double version, bool binary, int num,
if(!binary){
fprintf(fp, "%d %d", num ? num : numE, type);
if(version < 2.0)
fprintf(fp, " %d %d %d", abs(physical), elementary, n);
fprintf(fp, " %d %d", abs(physical), elementary);
else
fprintf(fp, " 3 %d %d %d", abs(physical), elementary, partE);
}
......@@ -337,7 +337,7 @@ void MPolygon::writeMSH(FILE *fp, double version, bool binary, int num,
if(!binary){
fprintf(fp, "%d %d", num ? num : numE, type);
if(version < 2.0)
fprintf(fp, " %d %d %d", abs(physical), elementary, n);
fprintf(fp, " %d %d", abs(physical), elementary);
else
fprintf(fp, " 3 %d %d %d", abs(physical), elementary, partE);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment