diff --git a/Box/Box.cpp b/Box/Box.cpp index 67966cc03a8a194c803aced34f8da3ac555b1bd5..ecd82ac56f5b0eac0c4894cac362517f60192287 100644 --- a/Box/Box.cpp +++ b/Box/Box.cpp @@ -1,4 +1,4 @@ -/* $Id: Box.cpp,v 1.13 2000-12-09 22:26:12 geuzaine Exp $ */ +/* $Id: Box.cpp,v 1.14 2000-12-19 08:56:52 geuzaine Exp $ */ #include <signal.h> @@ -77,10 +77,10 @@ void Info (int level, char *arg0){ fprintf(stderr, gmsh_help, arg0); exit(1); case 1: - fprintf(stderr, "%g\n", GMSH_VERSION); + fprintf(stderr, "%.3f\n", GMSH_VERSION); exit(1) ; case 2: - fprintf(stderr, "%s%g\n", gmsh_version, GMSH_VERSION); + fprintf(stderr, "%s%.3f\n", gmsh_version, GMSH_VERSION); fprintf(stderr, "%s\n", gmsh_os); fprintf(stderr, "%s\n", gmsh_date); fprintf(stderr, "%s\n", gmsh_host); diff --git a/Geo/Verif.cpp b/Geo/Verif.cpp index fa2a4829197d967ffbdc3bf1d2a7eff55591ba04..8e38177d597ec2f40b1556c9f995cc513e52a608 100644 --- a/Geo/Verif.cpp +++ b/Geo/Verif.cpp @@ -1,4 +1,4 @@ -/* $Id: Verif.cpp,v 1.4 2000-12-17 21:17:29 remacle Exp $ */ +/* $Id: Verif.cpp,v 1.5 2000-12-19 08:56:54 geuzaine Exp $ */ #include "Gmsh.h" #include "Geo.h" @@ -277,7 +277,7 @@ void PremierVolume(int iSurf, int *iVol){ } } } - if(*iVol = 0)*iVol = iSurf; + if(*iVol == 0) *iVol = iSurf; List_Delete(temp); } diff --git a/Unix/Main.cpp b/Unix/Main.cpp index db969a7a2a96711778443da9a80f1536ad74e5a9..81556c7aab3722adeb1ecb749edef79bdf5b132f 100644 --- a/Unix/Main.cpp +++ b/Unix/Main.cpp @@ -1,4 +1,4 @@ -/* $Id: Main.cpp,v 1.29 2000-12-14 13:10:55 geuzaine Exp $ */ +/* $Id: Main.cpp,v 1.30 2000-12-19 08:56:56 geuzaine Exp $ */ #include <signal.h> @@ -465,12 +465,12 @@ void Get_Options (int argc, char *argv[], int *nbfiles) { } else if(!strcmp(argv[i]+1, "version") || !strcmp(argv[i]+1, "-version")){ - fprintf(stderr, "%g\n", GMSH_VERSION); + fprintf(stderr, "%.3f\n", GMSH_VERSION); exit(1); } else if(!strcmp(argv[i]+1, "info") || !strcmp(argv[i]+1, "-info")){ - fprintf(stderr, "%s%g\n", gmsh_version, GMSH_VERSION); + fprintf(stderr, "%s%.3f\n", gmsh_version, GMSH_VERSION); fprintf(stderr, "%s\n", gmsh_os); fprintf(stderr, "%s\n", gmsh_date); fprintf(stderr, "%s\n", gmsh_host); @@ -536,7 +536,7 @@ int main(int argc, char *argv[]){ Get_Options(argc, argv, &nbf); if(CTX.verbosity) - fprintf(stderr, "%s, Version %g\n", gmsh_progname, GMSH_VERSION); + fprintf(stderr, "%s, Version %.3f\n", gmsh_progname, GMSH_VERSION); /* Initialize the static Mesh */ @@ -592,7 +592,7 @@ int main(int argc, char *argv[]){ /* Text for about window */ - sprintf(TextAbout, "%s\n \n%s%g\n%s\n%s\n%s\n%s\n%s\n%s\n \n%s\n \n" + sprintf(TextAbout, "%s\n \n%s%.3f\n%s\n%s\n%s\n%s\n%s\n%s\n \n%s\n \n" "Type 'gmsh -help' for command line options", gmsh_progname, gmsh_version, GMSH_VERSION, gmsh_os, gmsh_date, gmsh_host, gmsh_packager, @@ -854,7 +854,7 @@ int main(int argc, char *argv[]){ TextBuffer = (char*)Malloc(1024*sizeof(char)); Msg(STATUS, "Ready"); - Msg(SELECT, "Gmsh %g", GMSH_VERSION); + Msg(SELECT, "Gmsh %.3f", GMSH_VERSION); /* Open input file */