Dear MEEP users,

I wanted to define a structure using nested loops (map function).
Here is the code :

*********************************
(define structure
(map(lambda (i)
(map (lambda(j)

(make sphere (center i j (+ i j) ) (radius r) (material dielectric) )

)(arith-sequence 0 dx 10)
)

)
(arith-sequence 0 dx 10)
)


)

(set! geometry (append
structure
))
***********************************
but I get this error:

wrong type argument in position 2:0

How can I solve this problem?

Thanks in advance,
Ehsan
                                          
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to