remove unused parameter and silence compiler warnings
This commit is contained in:
@ -195,7 +195,7 @@ void BaseSPHT::compute(const int f_ago, const int inum_full, const int nall,
|
|||||||
int **firstneigh, const bool eflag_in, const bool vflag_in,
|
int **firstneigh, const bool eflag_in, const bool vflag_in,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *tag,
|
const double cpu_time, bool &success, tagint *tag,
|
||||||
double **host_v, const int nlocal) {
|
double **host_v) {
|
||||||
acc_timers();
|
acc_timers();
|
||||||
int eflag, vflag;
|
int eflag, vflag;
|
||||||
if (eatom) eflag=2;
|
if (eatom) eflag=2;
|
||||||
|
|||||||
@ -132,7 +132,7 @@ class BaseSPH {
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *tag,
|
const double cpu_time, bool &success, tagint *tag,
|
||||||
double **v, const int nlocal);
|
double **v);
|
||||||
|
|
||||||
/// Pair loop with device neighboring
|
/// Pair loop with device neighboring
|
||||||
int** compute(const int ago, const int inum_full, const int nall,
|
int** compute(const int ago, const int inum_full, const int nall,
|
||||||
|
|||||||
@ -110,10 +110,10 @@ void sph_heatconduction_gpu_compute(const int ago, const int inum_full, const in
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *host_tag,
|
const double cpu_time, bool &success, tagint *host_tag,
|
||||||
double **host_v, const int nlocal) {
|
double **host_v) {
|
||||||
SPHHeatConductionMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
SPHHeatConductionMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
||||||
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
||||||
host_tag, host_v, nlocal);
|
host_tag, host_v);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sph_heatconduction_gpu_get_extra_data(double *host_rho, double *host_esph) {
|
void sph_heatconduction_gpu_get_extra_data(double *host_rho, double *host_esph) {
|
||||||
|
|||||||
@ -110,10 +110,10 @@ void sph_lj_gpu_compute(const int ago, const int inum_full, const int nall,
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *host_tag,
|
const double cpu_time, bool &success, tagint *host_tag,
|
||||||
double **host_v, const int nlocal) {
|
double **host_v) {
|
||||||
SPHLJMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
SPHLJMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
||||||
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
||||||
host_tag, host_v, nlocal);
|
host_tag, host_v);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sph_lj_gpu_get_extra_data(double *host_rho, double *host_esph, double *host_cv) {
|
void sph_lj_gpu_get_extra_data(double *host_rho, double *host_esph, double *host_cv) {
|
||||||
|
|||||||
@ -114,10 +114,10 @@ void sph_taitwater_gpu_compute(const int ago, const int inum_full, const int nal
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *host_tag,
|
const double cpu_time, bool &success, tagint *host_tag,
|
||||||
double **host_v, const int nlocal) {
|
double **host_v) {
|
||||||
SPHTaitwaterMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
SPHTaitwaterMF.compute(ago, inum_full, nall, host_x, host_type, ilist, numj,
|
||||||
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
firstneigh, eflag, vflag, eatom, vatom, host_start, cpu_time, success,
|
||||||
host_tag, host_v, nlocal);
|
host_tag, host_v);
|
||||||
}
|
}
|
||||||
|
|
||||||
void sph_taitwater_gpu_get_extra_data(double *host_rho) {
|
void sph_taitwater_gpu_get_extra_data(double *host_rho) {
|
||||||
|
|||||||
@ -53,7 +53,7 @@ void sph_heatconduction_gpu_compute(const int ago, const int inum_full, const in
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *host_tag,
|
const double cpu_time, bool &success, tagint *host_tag,
|
||||||
double **host_v, const int nlocal);
|
double **host_v);
|
||||||
void sph_heatconduction_gpu_get_extra_data(double *host_rho, double *host_esph);
|
void sph_heatconduction_gpu_get_extra_data(double *host_rho, double *host_esph);
|
||||||
void sph_heatconduction_gpu_update_dE(void **dE_ptr);
|
void sph_heatconduction_gpu_update_dE(void **dE_ptr);
|
||||||
double sph_heatconduction_gpu_bytes();
|
double sph_heatconduction_gpu_bytes();
|
||||||
@ -122,7 +122,7 @@ void PairSPHHeatConductionGPU::compute(int eflag, int vflag)
|
|||||||
sph_heatconduction_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type,
|
sph_heatconduction_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type,
|
||||||
ilist, numneigh, firstneigh, eflag, vflag,
|
ilist, numneigh, firstneigh, eflag, vflag,
|
||||||
eflag_atom, vflag_atom, host_start, cpu_time, success,
|
eflag_atom, vflag_atom, host_start, cpu_time, success,
|
||||||
atom->tag, atom->v, atom->nlocal);
|
atom->tag, atom->v);
|
||||||
}
|
}
|
||||||
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ void sph_lj_gpu_compute(const int ago, const int inum_full, const int nall,
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *host_tag,
|
const double cpu_time, bool &success, tagint *host_tag,
|
||||||
double **host_v, const int nlocal);
|
double **host_v);
|
||||||
void sph_lj_gpu_get_extra_data(double *host_rho, double *host_esph,
|
void sph_lj_gpu_get_extra_data(double *host_rho, double *host_esph,
|
||||||
double *host_cv);
|
double *host_cv);
|
||||||
void sph_lj_gpu_update_drhoE(void **drhoE_ptr);
|
void sph_lj_gpu_update_drhoE(void **drhoE_ptr);
|
||||||
@ -123,7 +123,7 @@ void PairSPHLJGPU::compute(int eflag, int vflag)
|
|||||||
sph_lj_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type,
|
sph_lj_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type,
|
||||||
ilist, numneigh, firstneigh, eflag, vflag,
|
ilist, numneigh, firstneigh, eflag, vflag,
|
||||||
eflag_atom, vflag_atom, host_start, cpu_time, success,
|
eflag_atom, vflag_atom, host_start, cpu_time, success,
|
||||||
atom->tag, atom->v, atom->nlocal);
|
atom->tag, atom->v);
|
||||||
}
|
}
|
||||||
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
||||||
|
|
||||||
|
|||||||
@ -53,7 +53,7 @@ void sph_taitwater_gpu_compute(const int ago, const int inum_full, const int nal
|
|||||||
int **firstneigh, const bool eflag, const bool vflag,
|
int **firstneigh, const bool eflag, const bool vflag,
|
||||||
const bool eatom, const bool vatom, int &host_start,
|
const bool eatom, const bool vatom, int &host_start,
|
||||||
const double cpu_time, bool &success, tagint *tag,
|
const double cpu_time, bool &success, tagint *tag,
|
||||||
double **host_v, const int nlocal);
|
double **host_v);
|
||||||
void sph_taitwater_gpu_get_extra_data(double *host_rho);
|
void sph_taitwater_gpu_get_extra_data(double *host_rho);
|
||||||
void sph_taitwater_gpu_update_drhoE(void **drhoE_ptr);
|
void sph_taitwater_gpu_update_drhoE(void **drhoE_ptr);
|
||||||
double sph_taitwater_gpu_bytes();
|
double sph_taitwater_gpu_bytes();
|
||||||
@ -118,7 +118,7 @@ void PairSPHTaitwaterGPU::compute(int eflag, int vflag)
|
|||||||
firstneigh = list->firstneigh;
|
firstneigh = list->firstneigh;
|
||||||
sph_taitwater_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type, ilist, numneigh, firstneigh,
|
sph_taitwater_gpu_compute(neighbor->ago, inum, nall, atom->x, atom->type, ilist, numneigh, firstneigh,
|
||||||
eflag, vflag, eflag_atom, vflag_atom, host_start, cpu_time, success,
|
eflag, vflag, eflag_atom, vflag_atom, host_start, cpu_time, success,
|
||||||
atom->tag, atom->v, atom->nlocal);
|
atom->tag, atom->v);
|
||||||
}
|
}
|
||||||
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
if (!success) error->one(FLERR, "Insufficient memory on accelerator");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user