From 14a8bf94e6205dd54f9734aacc0842d42dce4eeb Mon Sep 17 00:00:00 2001
From: Gaetan Bricteux <gaetan.bricteux@uclouvain.be>
Date: Fri, 12 Mar 2010 13:39:45 +0000
Subject: [PATCH] fix MElement::writeMSH 2.0

---
 Geo/MElement.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp
index 026b4b419c..bd875ee117 100644
--- a/Geo/MElement.cpp
+++ b/Geo/MElement.cpp
@@ -411,6 +411,8 @@ void MElement::writeMSH(FILE *fp, double version, bool binary, int num,
     fprintf(fp, "%d %d", num ? num : _num, type);
     if(version < 2.0)
       fprintf(fp, " %d %d %d", abs(physical), elementary, n);
+    else if (version < 2.2)
+      fprintf(fp, " %d %d %d", abs(physical), elementary, _partition);
     else if(!_partition)
       fprintf(fp, " %d %d %d", 2 + par, abs(physical), elementary);
     else if(!ghosts)
-- 
GitLab