Fix potential overflow in Kokkos neighbor counting
This commit is contained in:
@ -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;
|
||||
|
||||
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user