[Gmsh] something strange with newv ...

Christophe Geuzaine geuzaine at acm.caltech.edu
Thu Apr 21 02:38:20 CEST 2005


Philippe Lussou wrote:
> Hello,
> 
> I have created a quite sophiticated mesh and I had troubles (duplicate 
> mesh). The solution I found to solve my problem was to had this lines in 
> the Function "Part1" (see attached file) :
> 
> If (nv1==nv2)
>    nv1+=5001 ;
> EndIf
> 
> because in some cases the command newv returned two times the same 
> number...
> 
> Did I something wrong ?

No. This weird behavior is only there for backward compatibility. You 
can force the new (correct) behavior with the following option

Geometry.OldNewReg=0;

(We still use Geometry.OldNewReg=1 by default because changing it would 
break too many old .geo files...)

Christophe


> 
>  Philippe Lussou
>  _______________________________________________
>  Numerical Engineering & Consulting Services
>  NECS  16-18, rue Dubrunfaut  75012 PARIS FRANCE
>  Tél. +33 (0) 1 43 56 91 93 
>  Por. +33 (0) 6 77 38 47 69
>  Fax. +33 (0) 1 43 56 91 99
>  URL www.necs.fr
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Christophe Geuzaine
Applied and Computational Mathematics, Caltech
geuzaine at acm.caltech.edu - http://geuz.org