Simplify view deallocation code
This commit is contained in:
@ -753,8 +753,8 @@ void PairPACEKokkos<DeviceType>::compute(int eflag_in, int vflag_in)
|
||||
|
||||
// free duplicated memory
|
||||
if (need_dup) {
|
||||
dup_f = decltype(dup_f)();
|
||||
dup_vatom = decltype(dup_vatom)();
|
||||
dup_f = {};
|
||||
dup_vatom = {};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user