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

-convert use v2 for now

parent fab1a29e
No related branches found
No related tags found
No related merge requests found
......@@ -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){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment