From 3110fe2fc6863c1af87efa8389c7132527c88c5a Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 21 Jan 2013 16:24:38 +0000
Subject: [PATCH] -convert use v2 for now

---
 Common/CommandLine.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp
index 5ed48894a4..c25ebcd5df 100644
--- a/Common/CommandLine.cpp
+++ b/Common/CommandLine.cpp
@@ -561,7 +561,7 @@ void GetOptions(int argc, char *argv[])
 #endif
           // convert mesh to latest binary format
           if(GModel::current()->getMeshStatus() > 0){
-            CTX::instance()->mesh.mshFileVersion = 3.0;
+            CTX::instance()->mesh.mshFileVersion = 2.0;
             CTX::instance()->mesh.binary = 1;
             CreateOutputFile(fileName, FORMAT_MSH);
           }
@@ -781,6 +781,10 @@ void GetOptions(int argc, char *argv[])
             CTX::instance()->mesh.fileFormat = FORMAT_MSH;
             CTX::instance()->mesh.mshFileVersion = 2.0;
           }
+          else if(!strcmp(argv[i], "msh3")){
+            CTX::instance()->mesh.fileFormat = FORMAT_MSH;
+            CTX::instance()->mesh.mshFileVersion = 3.0;
+          }
           else{
             int format = GetFileFormatFromExtension(std::string(".") + argv[i]);
             if(format < 0){
-- 
GitLab