Merge pull request #4374 from ndtrung81/gpu-threebody-neigh-no

Fixed bug in the GPU package when three-body pair styles are used with pair hybrid
This commit is contained in:
Axel Kohlmeyer
2024-11-12 17:31:11 -05:00
committed by GitHub

View File

@ -365,7 +365,9 @@ void Neighbor::get_host(const int inum, int *ilist, int *numj,
int i=ilist[ii]; int i=ilist[ii];
three_ilist[i] = ii; three_ilist[i] = ii;
} }
three_ilist.update_device(inum,true); // needs to transfer _max_atoms because three_ilist indexes all the atoms (local and ghost)
// not just inum (number of neighbor list items)
three_ilist.update_device(_max_atoms,true);
} }
time_nbor.stop(); time_nbor.stop();