Hi Keith,
There is a semicolon missing, i.e.
x1[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{4};};
x2[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{ x1[0] };};

You have to add it when working with lists.

Ruth


On 20/08/11 08:28, Keith Pickering wrote:
Why doesn't this work?

x1[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{4};}
x2[]=Extrude { {1,0,0},{0,0,0}, Pi/2} {Surface{ x1[0] };}

The first extrude works fine. The second throws a syntax error. The GMSH user manual says that the string[] format is ok for use in _expression_ lists, and x1[0] should be the top of the extrusion (i.e., the new surface) also according to the user manual.


Keith Pickering




_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

-- 
Dr. Ir. Ruth V. Sabariego
University of Liege, Dept. of Electrical Engineering & Computer Science, 
Applied & Computational Electromagnetics (ACE),
phone: +32-4-3663737 - fax: +32-4-3662910 - http://ace.montefiore.ulg.ac.be/


_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to