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

Function FOR_FT_COMPONENTS

src/update_eh.cpp:35–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33 if (chunks[i]->is_mine() && changed_materials) {
34 bool is_aniso = false;
35 FOR_FT_COMPONENTS(ft, cc) {
36 const direction d_c = component_direction(cc);
37 const direction d_1 = cycle_direction(chunks[i]->gv.dim, d_c, 1);
38 const direction d_2 = cycle_direction(chunks[i]->gv.dim, d_c, 2);
39 if (chunks[i]->s->chi1inv[cc][d_1] && chunks[i]->s->chi1inv[cc][d_2]) {
40 is_aniso = true;
41 break;
42 }
43 }
44 if (!chunks[i]->gvs_eh[ft].empty()) chunks[i]->gvs_eh[ft].clear();
45 if (loop_tile_base_eh > 0 && is_aniso) {
46 split_into_tiles(chunks[i]->gv, &chunks[i]->gvs_eh[ft], loop_tile_base_eh);

Callers 1

update_eh.cppFile · 0.70

Calls 14

component_directionFunction · 0.85
cycle_directionFunction · 0.85
field_type_componentFunction · 0.85
typeFunction · 0.85
abortFunction · 0.85
direction_componentFunction · 0.85
needs_PMethod · 0.80
ntotMethod · 0.80
strideMethod · 0.80
little_owned_corner0Method · 0.80
big_cornerMethod · 0.80
little_owned_cornerMethod · 0.80

Tested by

no test coverage detected