On Nov 2, 2010, at 11:43 AM, Silviu Popescu wrote:



Dear meep users,

I don't understand the following behaviour.
When I define geometry lattice like this:

(define-param Sx 8)
(define-param Sz 8 )
(set! geometry-lattice (make lattice (size Sx no-size Sz)))
(set-param! resolution 10)
....\

This is because Sx and Sz are predefined constants in Meep referring to components of the Poynting vector (which happen to have values 100 and 104).

The define-param command does nothing if the variable is already defined (in order to handle the case where the variable was defined on the command line), and so it uses the predefined values in this case.

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

Reply via email to