From 0ad6babead44c48bfaeea89647495d8a95bdfe32 Mon Sep 17 00:00:00 2001 From: Stan Moore Date: Fri, 8 Nov 2024 08:42:47 -0800 Subject: [PATCH] Fix another (already existing) bug when a proc has no atoms --- src/KOKKOS/npair_kokkos.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/KOKKOS/npair_kokkos.cpp b/src/KOKKOS/npair_kokkos.cpp index 4fec623c5d..fb3149ca4b 100644 --- a/src/KOKKOS/npair_kokkos.cpp +++ b/src/KOKKOS/npair_kokkos.cpp @@ -151,7 +151,11 @@ void NPairKokkos::build(NeighList *list_) if (GHOST) nall += atom->nghost; - if (nall == 0) return; + if (nall == 0) { + list->inum = 0; + list->gnum = 0; + return; + } list->grow(nall);