>From: meep-discuss [meep-discuss-boun...@ab-initio.mit.edu] on behalf of Ehsan >Saei [e.s...@hotmail.com] >Sent: Wednesday, March 26, 2014 9:28 AM >To: meep-discuss@ab-initio.mit.edu >Subject: [Meep-discuss] nested loop > >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?
Where did you define dx? Alan _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss