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

OpenProblem and .msh

parent af46da4c
No related branches found
No related tags found
No related merge requests found
// $Id: OpenFile.cpp,v 1.8 2001-02-23 00:07:51 remacle Exp $ // $Id: OpenFile.cpp,v 1.9 2001-03-18 13:57:12 geuzaine Exp $
#include "Gmsh.h" #include "Gmsh.h"
#include "Const.h" #include "Const.h"
#include "Context.h" #include "Context.h"
...@@ -51,7 +51,6 @@ void ParseFile(char *f){ ...@@ -51,7 +51,6 @@ void ParseFile(char *f){
} }
else if(!strncmp(String, "sms", 3)) else if(!strncmp(String, "sms", 3))
{ {
if(THEM->status < 0) mai3d(THEM, 0); if(THEM->status < 0) mai3d(THEM, 0);
Read_Mesh(THEM, yyin, FORMAT_SMS); Read_Mesh(THEM, yyin, FORMAT_SMS);
} }
...@@ -92,7 +91,7 @@ void OpenProblem(char *name){ ...@@ -92,7 +91,7 @@ void OpenProblem(char *name){
strcpy(ext,name+(strlen(name)-4)); strcpy(ext,name+(strlen(name)-4));
if(!strcmp(ext,".GEO") || if(!strcmp(ext,".GEO") ||
!strcmp(ext,".geo") || !strcmp(ext,".geo") ||
!strcmp(ext,".msh") || //!strcmp(ext,".msh") ||
!strcmp(ext,".pos")){ !strcmp(ext,".pos")){
CTX.basefilename[strlen(name)-4] = '\0'; CTX.basefilename[strlen(name)-4] = '\0';
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment