On 08/01/10 15:08, Olavo Luppi Silva wrote:
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.
Hi Olavo - in Gmsh the increment comes last, i.e.:
Physical Surface(1000 + i) = {100 + i : 500 + i : 100};
Ch.
Thanks for any help.
--
Olavo Luppi Silva
PhD Candidate
Department of Mechanical Engineering, Polytechnic School
University of São Paulo, Brazil
_______________________________________________
gmsh mailing list
[email protected]
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
_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh