From 60f6e9216ba111b7197d8d88343b4af2b1280ff3 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 20 Aug 2009 14:26:11 +0000 Subject: [PATCH] fix polygon/polyhedroin output for msh format < 2 --- Geo/MElementCut.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Geo/MElementCut.cpp b/Geo/MElementCut.cpp index f2c5b33293..171fc36979 100644 --- a/Geo/MElementCut.cpp +++ b/Geo/MElementCut.cpp @@ -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); } -- GitLab