Need to use vflag_either instead of vflag_global

This commit is contained in:
Stan Moore
2024-10-03 16:36:05 -06:00
parent 98ad09b0c9
commit 3776ff938d

View File

@ -212,7 +212,7 @@ void PairGranHookeHistoryKokkos<DeviceType>::compute(int eflag_in, int vflag_in)
}
}
} else {
if (vflag_global) {
if (vflag_either) {
if (shearupdate) {
Kokkos::parallel_reduce(Kokkos::RangePolicy<DeviceType, TagPairGranHookeHistoryCompute<HALFTHREAD,0,1,1>>(0,inum),*this, ev);
} else {