diff --git a/src/OPENMP/improper_cossq_omp.cpp b/src/OPENMP/improper_cossq_omp.cpp index 4ccc0d730a..7f294522fa 100644 --- a/src/OPENMP/improper_cossq_omp.cpp +++ b/src/OPENMP/improper_cossq_omp.cpp @@ -134,7 +134,7 @@ void ImproperCossqOMP::eval(int nfrom, int nto, ThrData * const thr) /* Calculate the angle: */ double torangle = acos(cosphi); - cosphi = cos(torangle - chi[type]); + cosphi = cos(torangle - chi0[type]); if (EFLAG) eimproper = 0.5 * k[type] * cosphi * cosphi;