| 18 | } |
| 19 | |
| 20 | double 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 | |
| 26 | double compute_real_cutoff(double alpha_bohr_inv, double tol) { |
| 27 | const double clamped_tol = std::max(1e-18, std::min(1e-4, tol)); |
no outgoing calls
no test coverage detected