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

Function automatic_alpha

cpp_core/src/ewald.cpp:20–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20double automatic_alpha(const Lattice& lattice) {
21 // Characteristic inverse length from cell volume.
22 const double l_char = std::cbrt(std::max(lattice.volume, 1e-12));
23 return 5.0 / l_char;
24}
25
26double compute_real_cutoff(double alpha_bohr_inv, double tol) {
27 const double clamped_tol = std::max(1e-18, std::min(1e-4, tol));

Callers 1

compute_ewald_ion_ionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected