On Jul 22, 2008, at 2:41 AM, Jun Tao Xi wrote: > I tried the following coding to verify the source power, some errors > were encountered. > Meep 0.20.1 is being used with Guile v1.8. By the way, the Meep > 0.20.1 is running well for other simulations now. [....] > > (print "flux = " (meep-fields-flux-in-box fields X (volume (center > 0 0 ) > (size 0 10 10))) "\n") > > (run-until 100)
The problem is that you can't call flux-in-box until the fields have been initialized, which happens inside run. This is equally true for any other low-level function where you pass the "fields" object explicitly. If you called the higher-level function (flux-in-box X (volume ...)) instead, it would print an error message about the fields not being initialized. If you add (run-until 0) before the flux line, that will initialize the fields and then it should work. Steven _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

