Hi,

I plan to make several flux objects to monitor the flux along a lossy
waveguide in the longitudinal direction.  Trying not to hard code each
objects by doing
(define p1 (add-flux .... (center 1 0 )...
(define p2 (add-flux .... (center 2 0 )...
...etc,

I would appreciate any help on better way to do it.  I have tried to make
list of flux objects such as
(define pn
   (map (lambda (pos)
       (append (add-flux ....) (add-flux ...) ...) (list 1 2 3 4)))

then
(display-fluxes pn)

, but got error:

ERROR: In procedure meep-dft-flux-freq-min-get:
ERROR: Wrong type argument in position 1: (#<collectable-swig-pointer
meep::dft_flux * 78adb0> #<collectable-swig-pointer meep::dft_flux *
78b840>)


Thank you for your help!

Puck Ja
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to