MCPcopy Create free account
hub / github.com/NanoComp/meep / FOR_MAGNETIC_COMPONENTS

Function FOR_MAGNETIC_COMPONENTS

src/monitor.cpp:218–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216 complex<double> tr(0.0, 0.0);
217 int nc = 0;
218 FOR_MAGNETIC_COMPONENTS(c) {
219 if (gv.has_field(c)) {
220 tr += get_chi1inv(c, component_direction(c), loc, frequency, false);
221 ++nc;
222 }
223 }
224 return complex<double>(nc, 0) / sum_to_all(tr);
225}
226

Callers 7

fields.cppFile · 0.70
get_fieldMethod · 0.70
integrate2Method · 0.70
output_hdf5Method · 0.70
derived_component_funcFunction · 0.70
do_get_array_sliceMethod · 0.70
integrateMethod · 0.70

Calls 2

component_directionFunction · 0.85
has_fieldMethod · 0.80

Tested by

no test coverage detected