change chi to chi0 in improper_cossq_omp.cpp

This commit is contained in:
Evangelos Voyiatzis
2025-02-10 19:00:21 +02:00
committed by GitHub
parent 5251ba1465
commit 7fe804d19d

View File

@ -134,7 +134,7 @@ void ImproperCossqOMP::eval(int nfrom, int nto, ThrData * const thr)
/* Calculate the angle: */ /* Calculate the angle: */
double torangle = acos(cosphi); double torangle = acos(cosphi);
cosphi = cos(torangle - chi[type]); cosphi = cos(torangle - chi0[type]);
if (EFLAG) eimproper = 0.5 * k[type] * cosphi * cosphi; if (EFLAG) eimproper = 0.5 * k[type] * cosphi * cosphi;