remove dead code to silence compiler warnings
This commit is contained in:
@ -825,8 +825,6 @@ void PPPMDispIntel::make_rho_c(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
// (dx,dy,dz) = distance to "lower left" grid pt
|
||||
// (mx,my,mz) = global coords of moving stencil pt
|
||||
|
||||
//double *q = atom->q;
|
||||
//double **x = atom->x;
|
||||
int nlocal = atom->nlocal;
|
||||
int nthr = comm->nthreads;
|
||||
|
||||
@ -847,7 +845,6 @@ void PPPMDispIntel::make_rho_c(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
const flt_t xi = delxinv;
|
||||
const flt_t yi = delyinv;
|
||||
const flt_t zi = delzinv;
|
||||
const flt_t fshift = shift;
|
||||
const flt_t fshiftone = shiftone;
|
||||
const flt_t fdelvolinv = delvolinv;
|
||||
|
||||
@ -1011,7 +1008,6 @@ void PPPMDispIntel::make_rho_g(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
const flt_t xi = delxinv_6;
|
||||
const flt_t yi = delyinv_6;
|
||||
const flt_t zi = delzinv_6;
|
||||
const flt_t fshift = shift_6;
|
||||
const flt_t fshiftone = shiftone_6;
|
||||
const flt_t fdelvolinv = delvolinv_6;
|
||||
|
||||
@ -1150,20 +1146,13 @@ void PPPMDispIntel::make_rho_a(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
{
|
||||
// clear 3d density array
|
||||
|
||||
memset(&(density_brick_a0[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a1[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a2[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a3[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a4[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a5[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a6[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,
|
||||
ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a0[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a1[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a2[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a3[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a4[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a5[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
memset(&(density_brick_a6[nzlo_out_6][nylo_out_6][nxlo_out_6]),0,ngrid_6*sizeof(FFT_SCALAR));
|
||||
|
||||
// loop over my charges, add their contribution to nearby grid points
|
||||
// (nx,ny,nz) = global coords of grid pt to "lower left" of charge
|
||||
@ -1171,19 +1160,14 @@ void PPPMDispIntel::make_rho_a(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
// (mx,my,mz) = global coords of moving stencil pt
|
||||
|
||||
int nlocal = atom->nlocal;
|
||||
|
||||
double **x = atom->x;
|
||||
|
||||
const int nix = nxhi_out_6 - nxlo_out_6 + 1;
|
||||
const int niy = nyhi_out_6 - nylo_out_6 + 1;
|
||||
|
||||
const flt_t lo0 = boxlo[0];
|
||||
const flt_t lo1 = boxlo[1];
|
||||
const flt_t lo2 = boxlo[2];
|
||||
const flt_t xi = delxinv_6;
|
||||
const flt_t yi = delyinv_6;
|
||||
const flt_t zi = delzinv_6;
|
||||
const flt_t fshift = shift_6;
|
||||
const flt_t fshiftone = shiftone_6;
|
||||
const flt_t fdelvolinv = delvolinv_6;
|
||||
|
||||
@ -1310,7 +1294,6 @@ void PPPMDispIntel::make_rho_none(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
shared(nthr, nlocal, global_density) if (!_use_lrt)
|
||||
#endif
|
||||
{
|
||||
int type;
|
||||
double **x = atom->x;
|
||||
|
||||
const int nix = nxhi_out_6 - nxlo_out_6 + 1;
|
||||
@ -1322,7 +1305,6 @@ void PPPMDispIntel::make_rho_none(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
const flt_t xi = delxinv_6;
|
||||
const flt_t yi = delyinv_6;
|
||||
const flt_t zi = delzinv_6;
|
||||
const flt_t fshift = shift_6;
|
||||
const flt_t fshiftone = shiftone_6;
|
||||
const flt_t fdelvolinv = delvolinv_6;
|
||||
|
||||
@ -1391,7 +1373,6 @@ void PPPMDispIntel::make_rho_none(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
}
|
||||
}
|
||||
|
||||
type = atom->type[i];
|
||||
FFT_SCALAR z0 = fdelvolinv;
|
||||
|
||||
#if defined(LMP_SIMD_COMPILER)
|
||||
@ -1416,7 +1397,6 @@ void PPPMDispIntel::make_rho_none(IntelBuffers<flt_t,acc_t> * /*buffers*/)
|
||||
#endif
|
||||
for (int l = 0; l < order; l++) {
|
||||
int mzyx = l + mzy;
|
||||
FFT_SCALAR w0 = x0*rho[0][l];
|
||||
for (int k = 0; k < nsplit; k++)
|
||||
my_density[mzyx + k*ngrid_6] += x0*rho[0][l];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user