From 8838b43c0404d21815ced28f3d27db4d071af5bb Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 29 Aug 2013 17:36:23 +0000
Subject: [PATCH] PeriodicNodes should save MVertex::getIndex(), not getNum()!

---
 Geo/GModelIO_MSH.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Geo/GModelIO_MSH.cpp b/Geo/GModelIO_MSH.cpp
index 764661a08b..15a0dd6126 100644
--- a/Geo/GModelIO_MSH.cpp
+++ b/Geo/GModelIO_MSH.cpp
@@ -42,7 +42,7 @@ void writeMSHPeriodicNodes(FILE *fp, std::vector<GEntity*> &entities)
            it != g_slave->correspondingVertices.end(); it++){
 	MVertex *v1 = it->first;
 	MVertex *v2 = it->second;
-	fprintf(fp,"%d %d\n", v1->getNum(), v2->getNum());
+	fprintf(fp,"%d %d\n", v1->getIndex(), v2->getIndex());
       }
     }
   }
-- 
GitLab