make communication settings consistent, in case the package command is used multiple times.

This commit is contained in:
Axel Kohlmeyer 2018-08-08 10:20:24 +02:00
parent b6c458192c
commit 3d537850fd
1 changed files with 1 additions and 0 deletions

View File

@ -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;