fix KOKKOS bug

This commit is contained in:
Axel Kohlmeyer
2022-03-23 14:40:17 -04:00
parent 59eca42127
commit 67329b6fff

View File

@ -104,7 +104,7 @@ void PairSNAPKokkos<DeviceType, real_type, vector_length>::init_style()
// adjust neighbor list request for KOKKOS
auto request = neighbor->find_request(this);
auto request = neighbor->add_request(this, NeighConst::REQ_FULL);
request->set_kokkos_host(std::is_same<DeviceType,LMPHostType>::value &&
!std::is_same<DeviceType,LMPDeviceType>::value);
request->set_kokkos_device(std::is_same<DeviceType,LMPDeviceType>::value);