|
Hi
Steven,
I am little bit confused with the syntax of the function and the reference manual doesn't help me: "(max-abs-field-function cs func [where] [fields-var])" func is a function of position (a vector3, its first argument) and zero or more field components specified by cs: a list of component constants. func can be real- or complex-valued. Let's just consider the case where one would like to calculate the maximum of |E|^2 in the entire computational domain. My guess was: meep> (define ((myfunc Ex Ey) x) (+ (* Ex (conj Ex)) (* Ey (conj Ey)))) meep> (max-abs-field-function Ex Ey (myfunc Ex Ey)) But this leads to errors: <unnamed port>: In procedure meep-fields-max-abs in _expression_ (meep-fields-max-abs (cdr waf) (cons cs func) ...): <unnamed port>: No matching method for generic function `meep_fields_max_abs' ABORT: (misc-error) Can anyone help? Regards David Leuenberger |
_______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

