Fix compiler warnings

This commit is contained in:
Stan Moore
2022-05-16 14:48:02 -04:00
parent 659fd82a9e
commit d32885fbe3
3 changed files with 4 additions and 4 deletions

View File

@ -111,7 +111,7 @@ int es_rand(es_RNG_t &state_)
LAMMPS_INLINE
double es_drand(es_RNG_t &state_)
{
return static_cast<double>(es_urand64(state_) / MAX_URAND64);
return 1.0 * es_urand64(state_) / static_cast<double>(MAX_URAND64);
}
//Marsaglia polar method for drawing a standard normal distributed random number

View File

@ -463,7 +463,7 @@ fprintf(stdout, "tota%03d total %3d could use %6d inums, expected %6d inums. inu
// loop over bins with local atoms, storing half of the neighbors
Kokkos::parallel_for(Kokkos::RangePolicy<DeviceType>(0,ssa_phaseCt),
LAMMPS_LAMBDA (const int workPhase) {
data.build_locals_onePhase(firstTry, comm->me, workPhase);
data.build_locals_onePhase(firstTry, workPhase);
});
k_ssa_itemLoc.modify<DeviceType>();
k_ssa_itemLen.modify<DeviceType>();
@ -527,7 +527,7 @@ fprintf(stdout, "Fina%03d %6d inum %6d gnum, total used %6d, allocated %6d\n"
template<class DeviceType>
KOKKOS_INLINE_FUNCTION
void NPairSSAKokkosExecute<DeviceType>::build_locals_onePhase(const bool firstTry, int /*me*/, int workPhase) const
void NPairSSAKokkosExecute<DeviceType>::build_locals_onePhase(const bool firstTry, int workPhase) const
{
const typename ArrayTypes<DeviceType>::t_int_1d_const_um stencil = d_stencil;
int which = 0;

View File

@ -292,7 +292,7 @@ class NPairSSAKokkosExecute
~NPairSSAKokkosExecute() {neigh_list.copymode = 1;};
KOKKOS_FUNCTION
void build_locals_onePhase(const bool firstTry, int me, int workPhase) const;
void build_locals_onePhase(const bool firstTry, int workPhase) const;
KOKKOS_FUNCTION
void build_ghosts_onePhase(int workPhase) const;