diff --git a/Common/CommandLine.cpp b/Common/CommandLine.cpp index e5c2979171dfbc6384afb804230b44667d5f936d..2736661864a26a3daccffb68a98bf36333fd1384 100644 --- a/Common/CommandLine.cpp +++ b/Common/CommandLine.cpp @@ -1,4 +1,4 @@ -// $Id: CommandLine.cpp,v 1.124 2008-03-20 11:44:02 geuzaine Exp $ +// $Id: CommandLine.cpp,v 1.125 2008-03-24 21:39:46 geuzaine Exp $ // // Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle // @@ -283,9 +283,10 @@ void Get_Options(int argc, char *argv[]) else if(!strcmp(argv[i] + 1, "bgm")) { i++; if(argv[i] != NULL){ - CTX.bgm_filename=argv[i++]; - } else { - fprintf(stderr, ERROR_STR "Missing file name\n"); + CTX.bgm_filename = argv[i++]; + } + else{ + fprintf(stderr, ERROR_STR "Missing file name\n"); exit(1); } } diff --git a/Geo/GModelIO_MED.cpp b/Geo/GModelIO_MED.cpp index 675bea0b81bf9cb8bbb8b5b9117dd0c936cdcf00..a4a89c81a6b84f96d9e5e01d8405dd5e166eef81 100644 --- a/Geo/GModelIO_MED.cpp +++ b/Geo/GModelIO_MED.cpp @@ -1,4 +1,4 @@ -// $Id: GModelIO_MED.cpp,v 1.15 2008-03-24 21:03:18 geuzaine Exp $ +// $Id: GModelIO_MED.cpp,v 1.16 2008-03-24 21:39:47 geuzaine Exp $ // // Copyright (C) 1997-2006 C. Geuzaine, J.-F. Remacle // @@ -323,7 +323,6 @@ int GModel::readMED(const std::string &name) (meshDim > 1) ? coord[meshDim * i + 1] : 0., (meshDim > 2) ? coord[meshDim * i + 2] : 0., 0, nodeTags.empty() ? 0 : nodeTags[i]); - // read elements for(int mshType = 0; mshType < 50; mshType++){ // loop over all possible MSH types med_geometrie_element type;