[Gmsh] BUG: file reload and variable scope

Maka Mohu maka.mohu at gmail.com
Wed Apr 2 12:16:01 CEST 2008


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/20080402/a76e94c5/attachment.html>