Fix potential overflow in Kokkos neighbor counting

This commit is contained in:
Stan Moore
2024-08-29 14:40:50 -06:00
parent 6fd022695a
commit 7a9f0cd60d
2 changed files with 3 additions and 3 deletions

View File

@ -638,10 +638,10 @@ void KokkosLMP::accelerator(int narg, char **arg)
called by Finish
------------------------------------------------------------------------- */
int KokkosLMP::neigh_count(int m)
bigint KokkosLMP::neigh_count(int m)
{
int inum = 0;
int nneigh = 0;
bigint nneigh = 0;
ArrayTypes<LMPHostType>::t_int_1d h_ilist;
ArrayTypes<LMPHostType>::t_int_1d h_numneigh;

View File

@ -64,7 +64,7 @@ class KokkosLMP : protected Pointers {
static void initialize(const Kokkos::InitializationSettings&, Error *);
static void finalize();
void accelerator(int, char **);
int neigh_count(int);
bigint neigh_count(int);
template<class DeviceType>
int need_dup(int qeq_flag = 0)