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

Function connect_phase_from_phase

src/boundaries.cpp:362–366  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360 return fabs(thephase.imag()) < 1e-13 && fabs(thephase.real() - realphase) < 1e-13;
361}
362static connect_phase connect_phase_from_phase(std::complex<double> thephase) {
363 return phase_isclose(thephase, 1.0) ? CONNECT_COPY
364 : phase_isclose(thephase, -1.0) ? CONNECT_NEGATE
365 : CONNECT_PHASE;
366}
367
368void fields::connect_the_chunks() {
369 /* For some of the chunks, H==B, and we definitely don't need to

Callers 1

FOR_COMPONENTSFunction · 0.85

Calls 1

phase_iscloseFunction · 0.85

Tested by

no test coverage detected