[Gmsh] BUG: file reload and variable scope

Christophe Geuzaine cgeuzaine at ulg.ac.be
Tue Apr 8 17:03:06 CEST 2008


Maka Mohu wrote:
> I wonder if there is a command to:
> 1) clear all variables without restarting gmsh.

No... Maybe we should add one?

> 2) clear the message consule.

No

> 
> /Maka.
> 
> On Wed, Apr 2, 2008 at 12:16 PM, Maka Mohu <maka.mohu at gmail.com 
> <mailto:maka.mohu at gmail.com>> wrote:
> 
>     You may try the following example:
>     ---------------------------------------------------------------
>     // 1- restart gmsh.
>     // 2- run once.
>     // 3- comment the line indicated and run again.
>     // 4- the variable ArRaY is not cleared when the script is reloaded.
>     You have
>     // to restart gmsh so that the variable is cleared.
> 
>     imax=1;
>     imax=2;  // comment me
>     For i In { 0 : imax : 1 }
>      ArRaY[i]=1;
>     EndFor
>     Printf("%g %g %g ",ArRaY[]);
>     ---------------------------------------------------------------
> 
>     Best regards,
>     Maka
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh


-- 
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine