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

Function default_field_func

src/array_slice.cpp:128–133  ·  view source on GitHub ↗

passthrough field function equivalent to component_fun in h5fields.cpp */

Source from the content-addressed store, hash-verified

126
127/* passthrough field function equivalent to component_fun in h5fields.cpp */
128static complex<double> default_field_func(const complex<realnum> *fields, const vec &loc,
129 void *data_) {
130 (void)loc; // unused
131 (void)data_; // unused
132 return cdouble(fields[0]);
133}
134
135static double default_field_rfunc(const complex<realnum> *fields, const vec &loc, void *data_) {
136 (void)loc; // unused

Callers

nothing calls this directly

Calls 1

cdoubleFunction · 0.85

Tested by

no test coverage detected