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

Method equal_layout

src/fields.cpp:707–714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705int fields::is_phasing() { return phasein_time > 0; }
706
707bool fields::equal_layout(const fields &f) const {
708 if (a != f.a || num_chunks != f.num_chunks || v != f.v || S != f.S) return false;
709 for (int d = 0; d < 5; d++)
710 if (k[d] != f.k[d]) return false;
711 for (int i = 0; i < num_chunks; ++i)
712 if (chunks[i]->a != f.chunks[i]->a || chunks[i]->v != f.chunks[i]->v) return false;
713 return true;
714}
715
716// total computational grid_volume, including regions redundant by symmetry
717volume fields::total_volume(void) const {

Callers 1

check_unequal_layoutFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected