Fix compiler warnings
This commit is contained in:
@ -111,7 +111,7 @@ int es_rand(es_RNG_t &state_)
|
||||
LAMMPS_INLINE
|
||||
double es_drand(es_RNG_t &state_)
|
||||
{
|
||||
return 1.0 * es_urand64(state_) / MAX_URAND64;
|
||||
return static_cast<double>(es_urand64(state_) / MAX_URAND64);
|
||||
}
|
||||
|
||||
//Marsaglia polar method for drawing a standard normal distributed random number
|
||||
|
||||
@ -128,7 +128,7 @@ class ComputeOrientOrderAtomKokkos : public ComputeOrientOrderAtom {
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
double associated_legendre(int, int, double) const;
|
||||
|
||||
void init_wigner3j();
|
||||
void init_wigner3j() override;
|
||||
t_sna_1d d_w3jlist; // Wigner coeffs
|
||||
};
|
||||
|
||||
|
||||
@ -147,7 +147,7 @@ class PairPACEKokkos : public PairPACE {
|
||||
void copy_tilde();
|
||||
void allocate() override;
|
||||
void precompute_harmonics();
|
||||
double memory_usage();
|
||||
double memory_usage() override;
|
||||
|
||||
template<int NEIGHFLAG>
|
||||
KOKKOS_INLINE_FUNCTION
|
||||
|
||||
@ -399,7 +399,7 @@ class PPPMKokkos : public PPPM, public KokkosBaseFFT {
|
||||
double boxlo[3];
|
||||
|
||||
void set_grid_global() override;
|
||||
void set_grid_local();
|
||||
void set_grid_local() override;
|
||||
void adjust_gewald();
|
||||
double newton_raphson_f() override;
|
||||
double derivf();
|
||||
@ -410,7 +410,7 @@ class PPPMKokkos : public PPPM, public KokkosBaseFFT {
|
||||
void deallocate() override;
|
||||
void deallocate_peratom() override;
|
||||
int factorable(int);
|
||||
double compute_df_kspace();
|
||||
double compute_df_kspace() override;
|
||||
double estimate_ik_error(double, double, bigint);
|
||||
void compute_gf_denom() override;
|
||||
void compute_gf_ik() override;
|
||||
|
||||
Reference in New Issue
Block a user