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

Function wrap_to_first_bz

cpp_core/src/kpoints.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8namespace {
9
10double wrap_to_first_bz(double value) {
11 // Wrap to [-0.5, 0.5) in reduced reciprocal coordinates.
12 return value - std::floor(value + 0.5);
13}
14
15double wrap_kpoint_component(double value) {
16 double wrapped = wrap_to_first_bz(value);

Callers 1

wrap_kpoint_componentFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected