Fixed vfull tally bug in KOKKOS

This commit is contained in:
charlie sievers
2019-10-14 19:28:20 -07:00
parent 623e8078e3
commit d53b882a5a

View File

@ -205,7 +205,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
}
// reallocate flangevin if necessary
if (tallyflag) {
if (tallyflag || osflag) {
if (nlocal > maxatom1) {
memoryKK->destroy_kokkos(k_flangevin,flangevin);
maxatom1 = atomKK->nmax;
@ -229,7 +229,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
FSUM s_fsum;
if (tstyle == ATOM)
if (gjfflag)
if (tallyflag)
if (tallyflag || osflag)
if (tbiasflag == BIAS)
if (rmass.data())
if (zeroflag) {
@ -300,7 +300,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
Kokkos::parallel_for(nlocal,post_functor);
}
else
if (tallyflag)
if (tallyflag || osflag)
if (tbiasflag == BIAS)
if (rmass.data())
if (zeroflag) {
@ -372,7 +372,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
}
else
if (gjfflag)
if (tallyflag)
if (tallyflag || osflag)
if (tbiasflag == BIAS)
if (rmass.data())
if (zeroflag) {
@ -443,7 +443,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
Kokkos::parallel_for(nlocal,post_functor);
}
else
if (tallyflag)
if (tallyflag || osflag)
if (tbiasflag == BIAS)
if (rmass.data())
if (zeroflag) {
@ -525,7 +525,7 @@ void FixLangevinKokkos<DeviceType>::post_force(int vflag)
// set modify flags for the views modified in post_force functor
if (gjfflag) k_franprev.template modify<DeviceType>();
if (gjfflag) k_lv.template modify<DeviceType>();
if (tallyflag) k_flangevin.template modify<DeviceType>();
if (tallyflag || osflag) k_flangevin.template modify<DeviceType>();
// set total force to zero
if (zeroflag) {