On Nov 2, 2010, at 8:42 AM, Silviu Popescu wrote:
Hello, I have an error in my code but I can't figure it out. (set! geometry (append(list (make block (center 0 0 (- -1.85 grosimeRetea))(size infinity infinity 3.4)(material (make dielectric (epsilon eps_SiO2)))) )(geometric-object-duplicates (vector3 0.5 0 0) 0 (/ Sx 0.5) (make block (center (0 0 (/ grosimeRetea -2) ) )(size umplere infinity grosimeRetea)(material (make dielectric (epsilon eps_Si)))) ) ) ) <unnamed port>:16:80: In expression (0 0 (/ grosimeRetea -2)): <unnamed port>:16:80: Wrong type to apply: 0 ABORT: (misc-error) Can someone give me a tip ?
The expression (0 0 foo) in Scheme means to call the function "0" with arguments 0 and foo. Since 0 is not a function, this gives an error.
Fix this by getting rid of your extra parens: (center 0 0 ...) Moral: parentheses in Scheme are important! --SGJ
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

