MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / wrap_kpoint_component

Function wrap_kpoint_component

cpp_core/src/kpoints.cpp:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15double wrap_kpoint_component(double value) {
16 double wrapped = wrap_to_first_bz(value);
17 if (std::abs(wrapped) < 1e-12) {
18 return 0.0;
19 }
20 if (std::abs(wrapped + 0.5) < 1e-12) {
21 return 0.5;
22 }
23 return wrapped;
24}
25
26} // namespace
27

Callers 2

monkhorst_pack_gridFunction · 0.85
gamma_centered_gridFunction · 0.85

Calls 1

wrap_to_first_bzFunction · 0.70

Tested by

no test coverage detected