forked from lijiext/lammps
make communication settings consistent, in case the package command is used multiple times.
This commit is contained in:
parent
b6c458192c
commit
3d537850fd
|
@ -204,6 +204,7 @@ void KokkosLMP::accelerator(int narg, char **arg)
|
|||
if (iarg+2 > narg) error->all(FLERR,"Illegal package kokkos command");
|
||||
if (strcmp(arg[iarg+1],"no") == 0) {
|
||||
exchange_comm_classic = forward_comm_classic = reverse_comm_classic = 1;
|
||||
exchange_comm_on_host = forward_comm_on_host = reverse_comm_on_host = 0;
|
||||
} else if (strcmp(arg[iarg+1],"host") == 0) {
|
||||
exchange_comm_classic = forward_comm_classic = reverse_comm_classic = 0;
|
||||
exchange_comm_on_host = forward_comm_on_host = reverse_comm_on_host = 1;
|
||||
|
|
Loading…
Reference in New Issue