Unverified Commit fdb1e697 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

silence compiler warnings

parent 284cdcea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -71,11 +71,11 @@ GridCommKokkos<DeviceType>::GridCommKokkos(LAMMPS *lmp, MPI_Comm gcomm,
------------------------------------------------------------------------- */

template<class DeviceType>
GridCommKokkos<DeviceType>::GridCommKokkos(LAMMPS *lmp, MPI_Comm gcomm, int flag,
GridCommKokkos<DeviceType>::GridCommKokkos(LAMMPS *lmp, MPI_Comm gcomm, int /*flag*/,
		   int gnx, int gny, int gnz,
		   int ixlo, int ixhi, int iylo, int iyhi, int izlo, int izhi,
		   int oxlo, int oxhi, int oylo, int oyhi, int ozlo, int ozhi,
		   int exlo, int exhi, int eylo, int eyhi, int ezlo, int ezhi)
           int /*exlo*/, int /*exhi*/, int /*eylo*/, int /*eyhi*/, int /*ezlo*/, int /*ezhi*/)
  : GridComm(lmp, gcomm,
             gnx, gny, gnz,
             ixlo,ixhi, iylo, iyhi, izlo, izhi,
+3 −3
Original line number Diff line number Diff line
@@ -968,7 +968,7 @@ forward_comm_kspace_regular(KSpace *kspace, int nper, int /*nbyte*/, int which,
------------------------------------------------------------------------- */

void GridComm::
forward_comm_kspace_tiled(KSpace *kspace, int nper, int /*nbyte*/, int which,
forward_comm_kspace_tiled(KSpace *kspace, int nper, int nbyte, int which,
			  void *buf1, void *vbuf2, MPI_Datatype datatype)
{
  int i,m,offset;
@@ -1022,10 +1022,10 @@ void GridComm::reverse_comm_kspace(KSpace *kspace, int nper, int nbyte, int whic

/* ----------------------------------------------------------------------
   reverse comm on regular grid of procs via list of swaps with 6 neighbor procs
/* ---------------------------------------------------------------------- */
------------------------------------------------------------------------- */

void GridComm::
reverse_comm_kspace_regular(KSpace *kspace, int nper, int nbyte, int which,
reverse_comm_kspace_regular(KSpace *kspace, int nper, int /*nbyte*/, int which,
			    void *buf1, void *buf2, MPI_Datatype datatype)
{
  int m;
+3 −3
Original line number Diff line number Diff line
@@ -73,9 +73,9 @@ PPPM::PPPM(LAMMPS *lmp) : KSpace(lmp),
  rho_coeff(NULL), drho1d(NULL), drho_coeff(NULL),
  sf_precoeff1(NULL), sf_precoeff2(NULL), sf_precoeff3(NULL),
  sf_precoeff4(NULL), sf_precoeff5(NULL), sf_precoeff6(NULL),
  acons(NULL), density_A_brick(NULL), density_B_brick(NULL), density_A_fft(NULL),
  density_B_fft(NULL), fft1(NULL), fft2(NULL), remap(NULL), gc(NULL),
  gc_buf1(NULL), gc_buf2(NULL), part2grid(NULL), boxlo(NULL)
  acons(NULL), fft1(NULL), fft2(NULL), remap(NULL), gc(NULL),
  gc_buf1(NULL), gc_buf2(NULL), density_A_brick(NULL), density_B_brick(NULL), density_A_fft(NULL),
  density_B_fft(NULL), part2grid(NULL), boxlo(NULL)
{
  peratom_allocate_flag = 0;
  group_allocate_flag = 0;
+4 −4
Original line number Diff line number Diff line
@@ -2977,7 +2977,7 @@ double PPPMDisp::compute_qopt_ik()
  double unitky = (2.0*MY_PI/yprd);
  double unitkz = (2.0*MY_PI/zprd_slab);

  int nx,ny,nz,kper,lper,mper;
  int nx,ny,nz;
  double sqk, u2;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
  double sum1,sum2, sum3,dot1,dot2;
@@ -3068,7 +3068,7 @@ double PPPMDisp::compute_qopt_ad()
  double unitky = (2.0*MY_PI/yprd);
  double unitkz = (2.0*MY_PI/zprd_slab);

  int nx,ny,nz,kper,lper,mper;
  int nx,ny,nz;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
  double u2, sqk;
  double sum1,sum2,sum3,sum4,dot2;
@@ -3158,7 +3158,7 @@ double PPPMDisp::compute_qopt_6_ik()
  double unitky = (2.0*MY_PI/yprd);
  double unitkz = (2.0*MY_PI/zprd_slab);

  int nx,ny,nz,kper,lper,mper;
  int nx,ny,nz;
  double sqk, u2;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
  double sum1,sum2, sum3;
@@ -3256,7 +3256,7 @@ double PPPMDisp::compute_qopt_6_ad()
  double unitky = (2.0*MY_PI/yprd);
  double unitkz = (2.0*MY_PI/zprd_slab);

  int nx,ny,nz,kper,lper,mper;
  int nx,ny,nz;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
  double u2, sqk;
  double sum1,sum2,sum3,sum4;
+2 −2
Original line number Diff line number Diff line
@@ -273,7 +273,7 @@ double PPPMStagger::compute_qopt()
{
  if (differentiation_flag == 1) return compute_qopt_ad();

  int k,l,m,nx,ny,nz,kper,lper,mper;
  int k,l,m,nx,ny,nz;
  double snx,sny,snz;
  double cnx,cny,cnz;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
@@ -372,7 +372,7 @@ double PPPMStagger::compute_qopt()

double PPPMStagger::compute_qopt_ad()
{
  int k,l,m,nx,ny,nz,kper,lper,mper;
  int k,l,m,nx,ny,nz;
  double argx,argy,argz,wx,wy,wz,sx,sy,sz,qx,qy,qz;
  double sum1,sum2,sum3,sum4,sum5,sum6,dot2;
  double u1,u2,sqk;