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

Function FOR_COMPONENTS

src/boundaries.cpp:323–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321 // First electric components...
322 chunks[i]->num_zeroes[ft] = 0;
323 DOCMP FOR_COMPONENTS(c) {
324 if (type(c) == ft && chunks[i]->f[c][cmp]) LOOP_OVER_VOL_OWNED(vi, c, n) {
325 if (IVEC_LOOP_AT_BOUNDARY) { // todo: just loop over boundaries
326 IVEC_LOOP_ILOC(vi, here);
327 if (on_metal_boundary(here)) chunks[i]->num_zeroes[ft]++;
328 }
329 }
330 }
331 typedef realnum *realnum_ptr;
332 chunks[i]->zeroes[ft] = new realnum_ptr[chunks[i]->num_zeroes[ft]];
333 size_t num = 0;

Callers

nothing calls this directly

Calls 14

typeFunction · 0.85
LOOP_OVER_VOL_NOTOWNEDFunction · 0.85
is_BFunction · 0.85
connect_phase_from_phaseFunction · 0.85
is_electricFunction · 0.85
is_magneticFunction · 0.85
ownsMethod · 0.80
indexMethod · 0.80
internal_notowned_ptrMethod · 0.80
LOOP_OVER_VOL_OWNEDFunction · 0.70
is_mineMethod · 0.45

Tested by

no test coverage detected