Commit 1f44dc24 authored by Stan Moore's avatar Stan Moore
Browse files

Remove unused array in comm_kokkos

parent d1e751d7
Loading
Loading
Loading
Loading
+3 −6
Original line number Diff line number Diff line
@@ -1068,7 +1068,9 @@ void CommKokkos::copy_swap_info()
  }
  totalsend = scan;

  int* list = NULL;
  // create map of ghost to local atom id
  // store periodic boundary transform from local to ghost

  memory->create(list,totalsend,"comm:list");
  if (totalsend > k_pbc.extent(0)) {
    k_pbc = DAT::tdual_int_2d("comm:pbc",totalsend,6);
@@ -1077,9 +1079,6 @@ void CommKokkos::copy_swap_info()
    k_g2l = Kokkos::subview(k_swap2,1,Kokkos::ALL);
  }

  // create map of ghost atoms to local atoms
  // store periodic boundary transform from local to ghost

  for (int iswap = 0; iswap < nswap; iswap++) {
    for (int i = 0; i < sendnum[iswap]; i++) {
      int source = sendlist[iswap][i] - atom->nlocal;
@@ -1109,8 +1108,6 @@ void CommKokkos::copy_swap_info()
  k_swap.modify<LMPHostType>();
  k_swap2.modify<LMPHostType>();
  k_pbc.modify<LMPHostType>();

  memory->destroy(list);
}

/* ----------------------------------------------------------------------