Dear Steven, Meep users,

I would like to pass a function of variable x updated by a loop to 
run-until and it seems to be causing trouble.
The structure of the ctl file:

(define (print-all x)  (print  "x="  ","  x  "\n"))
(do ((x xstart (+ x xstep))) ((> x xstop))
    ; setting the structure, source etc
    (run-until 1) (at-end (print-all x))
    (reset-meep)
)
generates an error. No error if (print-all x) is called within the loop 
but outside run-until or if run-until is not a function of the variable 
x updated by the loop.
How can I call such a function with run-until?

Thanks in advance,

Frederic

_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to