forked from lijiext/lammps
Disallowing full neighborlist for pair_tersoff_kokkos styles until a bugfix is released
This commit is contained in:
parent
27172c4a55
commit
eca9539f84
|
@ -99,6 +99,9 @@ void PairTersoffKokkos<DeviceType>::init_style()
|
|||
neighbor->requests[irequest]->
|
||||
kokkos_device = Kokkos::Impl::is_same<DeviceType,LMPDeviceType>::value;
|
||||
|
||||
if (neighflag == FULL)
|
||||
error->all(FLERR,"Cannot (yet) use full neighbor list style with tersoff/kk");
|
||||
|
||||
if (neighflag == FULL || neighflag == HALF || neighflag == HALFTHREAD) {
|
||||
//if (neighflag == FULL || neighflag == HALFTHREAD) {
|
||||
neighbor->requests[irequest]->full = 1;
|
||||
|
|
|
@ -225,6 +225,10 @@ class PairTersoffKokkos : public PairTersoff {
|
|||
|
||||
/* ERROR/WARNING messages:
|
||||
|
||||
E: Cannot (yet) use full neighbor list style with tersoff/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Cannot use chosen neighbor list style with tersoff/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
|
|
@ -99,6 +99,9 @@ void PairTersoffMODKokkos<DeviceType>::init_style()
|
|||
neighbor->requests[irequest]->
|
||||
kokkos_device = Kokkos::Impl::is_same<DeviceType,LMPDeviceType>::value;
|
||||
|
||||
if (neighflag == FULL)
|
||||
error->all(FLERR,"Cannot (yet) use full neighbor list style with tersoff/mod/kk");
|
||||
|
||||
if (neighflag == FULL || neighflag == HALF || neighflag == HALFTHREAD) {
|
||||
neighbor->requests[irequest]->full = 1;
|
||||
neighbor->requests[irequest]->half = 0;
|
||||
|
@ -107,7 +110,7 @@ void PairTersoffMODKokkos<DeviceType>::init_style()
|
|||
else
|
||||
neighbor->requests[irequest]->ghost = 0;
|
||||
} else {
|
||||
error->all(FLERR,"Cannot use chosen neighbor list style with tersoff/kk");
|
||||
error->all(FLERR,"Cannot use chosen neighbor list style with tersoff/mod/kk");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -225,7 +225,11 @@ class PairTersoffMODKokkos : public PairTersoffMOD {
|
|||
|
||||
/* ERROR/WARNING messages:
|
||||
|
||||
E: Cannot use chosen neighbor list style with tersoff/kk
|
||||
E: Cannot (yet) use full neighbor list style with tersoff/mod/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Cannot use chosen neighbor list style with tersoff/mod/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
|
|
|
@ -110,6 +110,9 @@ void PairTersoffZBLKokkos<DeviceType>::init_style()
|
|||
neighbor->requests[irequest]->
|
||||
kokkos_device = Kokkos::Impl::is_same<DeviceType,LMPDeviceType>::value;
|
||||
|
||||
if (neighflag == FULL)
|
||||
error->all(FLERR,"Cannot (yet) use full neighbor list style with tersoff/zbl/kk");
|
||||
|
||||
if (neighflag == FULL || neighflag == HALF || neighflag == HALFTHREAD) {
|
||||
neighbor->requests[irequest]->full = 1;
|
||||
neighbor->requests[irequest]->half = 0;
|
||||
|
|
|
@ -239,6 +239,10 @@ E: Pair tersoff/zbl/kk requires metal or real units
|
|||
|
||||
This is a current restriction of this pair potential.
|
||||
|
||||
E: Cannot (yet) use full neighbor list style with tersoff/zbl/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
||||
E: Cannot use chosen neighbor list style with tersoff/zbl/kk
|
||||
|
||||
Self-explanatory.
|
||||
|
|
Loading…
Reference in New Issue