update code with clang-tidy fixes

This commit is contained in:
Axel Kohlmeyer
2022-05-13 18:26:38 -04:00
parent 3782eea7c4
commit 9c16819305
2 changed files with 15 additions and 15 deletions

View File

@ -719,7 +719,7 @@ double ComputeOrientOrderAtom::w3j(const int lmax, const int j1, const int j2, c
int t = 0;
while (c - b + t + alpha < 0 || c - a + t - beta < 0) t++;
// ^^ t>=-j1 ^^ t>=j2
while (1) {
while (true) {
if (a + b - c - t < 0) break; // t<=lmax
if (a - t - alpha < 0) break; // t<=lmax-j1
if (b - t + beta < 0) break; // t<=lmax+j2