Thanks, I sorted out the other problem as well.
Thanks, Asa -----Original Message----- From: matt [mailto:[EMAIL PROTECTED] Sent: 18 August 2008 17:59 To: asadollahbaik a. (aa306) Cc: [email protected] Subject: Re: [Meep-discuss] Meep:no match you need to put a "\" in front of "?" in the shell command line, like this: ~> meep a\?=true file.ctl That will get rid of the second error. On Mon, 18 Aug 2008, asadollahbaik a. (aa306) wrote: > Dear Meep users. > > I am doing the transmission and reflection simulation for a pattern > consisting of randomly oriented hexagonal lattices of dielectric rods in air. > > Following the example of transmission and reflection calculation in Meep > homepage, the simulation has to be performed twice: once when there is no > structure in between the source and monitors and the other when the structure > is at the right place between the trans and refl monitors. > > My problem is with making this "if" bit to work. > The command I am using is based on the structure below: > > (if a? > (b=1) > (b=0) > ) > > "a?" would be the condition confiming the existence of the structure (when > set to true) or the absence of the structure (when set to false), > B=1 is the commands of making the structure ( set! Geometry ...) > And b=0 sets the empty geometry (set! Geometry '() ) > > Unfortunately this does not work. It just works when I do not specify "a?" > which would consider the default condition (a?=false). > When I say for example "a?=true" I get the error : > ERROR: Wrong type to apply: #<unspecified> > Or > Meep:no match when I use the university cluster. > > I need to use the if-command in this way because I have a very complicated > geometry definition file. > > I guess my problem is more a scheme problem rather than a meep problem. (I am > not a computer programmer). > > I really appreciate your help, > Regards, > Asa, > > Asa Asadollahbaik > PhD Research Student > > Room 2045, Building 25 > University of Southampton > Highfield Avenue > Southampton > SO17 1BJ > > Phone Number : 023 8059 8365 > > _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

