On Jul 30, 2008, at 2:35 AM, Juntao Xi wrote:
As for the Synchronization function, do I need to apply synchronized-
magnetic only to magnetic component or both electrical and magnetic
components?
Which one is a right way? Or both of them are right?
Scenario 1:
====
(synchronized-magnetic output-efield-z)
(synchronized-magnetic output-bfield-z)
====
Scenario 2:
====
(output-efield-z)
(synchronized-magnetic output-bfield-z)
====
You only need to synchronize the magnetic field; the synchronization
does not affect the electric field.
However, in any case I would suggest a slightly different approach.
The right thing is to wrap *one* synchronization call around all the
functions you want to synchronize, like this:
(synchronized-magnetic output-efield-z output-bfield-z)
You definitely don't want to have multiple synchronized-magnetic
calls. Each call to synchronized-magnetic is relatively expensive
because it has to timestep the magnetic field.
Steven
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss