diff --git a/Common/DefaultOptions.h b/Common/DefaultOptions.h index c13630e1f6c3e7262051afeca159962fdc29ac22..6c8540c4d8e3e012f10fcadf5779b354cd86e47b 100644 --- a/Common/DefaultOptions.h +++ b/Common/DefaultOptions.h @@ -217,7 +217,7 @@ StringXNumber MeshOptions_Number[] = { StringXNumber PostProcessingOptions_Number[] = { { F|O, "Scales" , opt_post_scales , 1. }, { F|O, "Link" , opt_post_link , 0. }, - { F|O, "Smoothing" , opt_post_smooth , 0. }, + { F|O, "Smoothing" , opt_post_smooth , 1. }, { F|O, "AnimationDelay" , opt_post_anim_delay , 0.25 }, { F, "NbViews" , opt_post_nb_views , 0. }, { 0, NULL , NULL , 0. } diff --git a/Common/GetOptions.cpp b/Common/GetOptions.cpp index e990af83048b2d60c0f202cbcedb476bf5748900..32494d42e39c29e3aaf01a4af0d408a2906bf289 100644 --- a/Common/GetOptions.cpp +++ b/Common/GetOptions.cpp @@ -1,4 +1,4 @@ -// $Id: GetOptions.cpp,v 1.13 2001-02-22 08:16:30 geuzaine Exp $ +// $Id: GetOptions.cpp,v 1.14 2001-02-22 14:43:39 remacle Exp $ #include "Gmsh.h" #include "GmshUI.h" @@ -188,7 +188,7 @@ void Get_Options (int argc, char *argv[], int *nbfiles) { i++; if(argv[i]!=NULL){ CTX.mesh.degree = atoi(argv[i++]); - if(CTX.mesh.degree != 1 || CTX.mesh.degree != 2){ + if(CTX.mesh.degree != 1 && CTX.mesh.degree != 2){ fprintf(stderr, ERROR_STR "Wrong Degree\n"); exit(1); }