Hi all,
I've found that the parallelization of my simulations is being limited by
add-flux. I'm using a dual Xeon 5335, and for the appended example it takes
Without add-flux: 1 process: 130.0 s
4 processes: 37.2 s
With add-flux: 1 process: 333 s
4 processes: 236 s
This is just a small example to reproduce the problem, but I have the same
problems in my simulations.
Best regards,
João L. Silva
----------------------------------------------------------------------------
(define sx 64)
(define sy 16)
(set! resolution 20)
(set! geometry-lattice (make lattice (size sx sy no-size)))
(set! geometry (list
(make block (center 0 0) (size infinity 1 infinity)
(material (make dielectric (epsilon 12))))))
(set! sources (list
(make source
(src (make continuous-src (frequency 0.15)))
(component Ez)
(center -7 0))))
(set! pml-layers (list (make pml (thickness 1.0))))
(define fcen 0.15)
(define df 1.0)
(define-param nfreq 2048) ; number of frequencies at which to compute flux
(define trans ; transmitted flux
(add-flux fcen df nfreq
(make flux-region
(center (/ sx 3) 0) (size 0 sy))))
(use-output-directory)
(run-until 200 (at-end output-efield-z))
----------------------------------------------------------------------------
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss