Fix compile error in angle_class2_kokkos

This commit is contained in:
Stan Gerald Moore
2021-12-21 08:34:02 -07:00
parent 4bc85f07e3
commit 6187431399

View File

@ -224,8 +224,8 @@ void AngleClass2Kokkos<DeviceType>::operator()(TagAngleClass2Compute<NEWTON_BOND
// force & energy for bond-bond term
const F_FLOAT dr1 = r1 - d_bb_r1[type];
const F_FLOAT dr2 = r2 - d_bb_r2[type];
F_FLOAT dr1 = r1 - d_bb_r1[type];
F_FLOAT dr2 = r2 - d_bb_r2[type];
const F_FLOAT tk1 = d_bb_k[type] * dr1;
const F_FLOAT tk2 = d_bb_k[type] * dr2;
@ -241,8 +241,8 @@ void AngleClass2Kokkos<DeviceType>::operator()(TagAngleClass2Compute<NEWTON_BOND
// force & energy for bond-angle term
const F_FLOAT dr1 = r1 - d_ba_r1[type];
const F_FLOAT dr2 = r2 - d_ba_r2[type];
dr1 = r1 - d_ba_r1[type];
dr2 = r2 - d_ba_r2[type];
const F_FLOAT aa1 = s * dr1 * d_ba_k1[type];
const F_FLOAT aa2 = s * dr2 * d_ba_k2[type];