On Jul 12, 2009, at 2:15 AM, Kevin Huang wrote:
(do ((StripSizeX 300 (+ StripSizeX 5))) (> StripSizeX 305)
You are missing some parens. It should be:
(do ((StripSizeX 300 (+ StripSizeX 5))) ((> StripSizeX 305))
....loop body....
)
Note also that you will need to call (reset-meep) in between
simulations.
Usually, when doing parameter sweeps like this, I find it easier to
launch a separate run of Meep for each simulation, so that the control
file only has one simulation. You can make StripSizeX a command-line
parameter with define-param, and then write a loop in the shell.
See also the section "How to write a loop in Scheme" in:
http://ab-initio.mit.edu/wiki/index.php/Guile_and_Scheme_links
Steven
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss