On Sep 23, 2008, at 7:22 PM, Frederic Brossard wrote:
> (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

I'm guessing that you mistyped it in your email, and your code looks  
like:

        (run-until 1 (at-end (print-all x)))

This won't work because (print-all x) is not a function, it is the  
result of calling a function.

See:

http://ab-initio.mit.edu/wiki/index.php/The_run_function_is_not_a_loop

Steven

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

Reply via email to