Fix issue with peratom energy/virial in pair_snap_kokkos

This commit is contained in:
Stan Moore 2018-01-10 10:20:40 -07:00
parent 92e2df74c1
commit d7d087ae67
1 changed files with 4 additions and 1 deletions

View File

@ -66,7 +66,10 @@ PairSNAPKokkos<DeviceType>::PairSNAPKokkos(LAMMPS *lmp) : PairSNAP(lmp)
template<class DeviceType>
PairSNAPKokkos<DeviceType>::~PairSNAPKokkos()
{
//if (copymode) return;
if (copymode) return;
memoryKK->destroy_kokkos(k_eatom,eatom);
memoryKK->destroy_kokkos(k_vatom,vatom);
}