[Gmsh] BUG: file reload and variable scope

Maka Mohu maka.mohu at gmail.com
Thu Apr 3 12:54:19 CEST 2008


I wonder if there is a command to:
1) clear all variables without restarting gmsh.
2) clear the message consule.

/Maka.

On Wed, Apr 2, 2008 at 12:16 PM, Maka Mohu <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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20080403/a9c9d3c7/attachment.html>