Fix another (already existing) bug when a proc has no atoms

This commit is contained in:
Stan Moore
2024-11-08 08:42:47 -08:00
parent b74096b2c4
commit 0ad6babead

View File

@ -151,7 +151,11 @@ void NPairKokkos<DeviceType,HALF,NEWTON,GHOST,TRI,SIZE>::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);