[Gmsh] Increment list with : operator
Olavo Luppi Silva
olavo.luppi at ig.com.br
Fri Jan 8 15:08:16 CET 2010
Dear gmsh community,
I'm in trouble " : " operator. For instance, to make Physical Surfaces, I'm
using:
For i In {1:2}
Physical Surface(1000 + i) = {100 + i:100:500 + i};
EndFor
and expected to have the same result as
Physical Surface(1001) = {101, 201, 301, 401, 501};
Physical Surface(1002) = {102, 202, 302, 402, 502};
but I get the following erros:
Error : 'hexagono_3.geo', line 192 : Wrong increment in '101:100:501'
Error : 'hexagono_3.geo', line 192 : Wrong increment in '102:100:502'
Is it a bug or am I misunderstanding something? I'm using gmsh version 2.4.2
over linux fedora 12.
Thanks for any help.
--
Olavo Luppi Silva
PhD Candidate
Department of Mechanical Engineering, Polytechnic School
University of São Paulo, Brazil
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20100108/e1d02bc0/attachment.html>