correct factor 2 force error for m=1 in angle style cosine/periodic

This commit is contained in:
Axel Kohlmeyer
2024-01-12 18:40:30 -05:00
parent a131b90962
commit 39579d21c8

View File

@ -140,7 +140,7 @@ void AngleCosinePeriodicOMP::eval(int nfrom, int nto, ThrData * const thr)
tn = 1.0;
tn_1 = 1.0;
tn_2 = 0.0;
un = 1.0;
un = (m==1) ? 2.0 : 1.0;
un_1 = 2.0;
un_2 = 0.0;