Commit d7d087ae authored by Stan Moore's avatar Stan Moore
Browse files

Fix issue with peratom energy/virial in pair_snap_kokkos

parent 92e2df74
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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);
}