silence compiler warnings about unused variables

This commit is contained in:
Axel Kohlmeyer
2022-03-18 18:09:24 -04:00
parent 25d8950f94
commit 68673633f0
4 changed files with 6 additions and 9 deletions

View File

@ -520,9 +520,9 @@ void FixRX::initSparse()
}
if (comm->me == 0 && Verbosity > 1) {
for (int i = 1; i < nu_bin.size(); ++i)
if (nu_bin[i] > 0)
printf("nu_bin[%d] = %d\n", i, nu_bin[i]);
for (int i = 1; i < (int)nu_bin.size(); ++i)
if ((nu_bin[i] > 0) && screen)
fprintf(screen, "nu_bin[%d] = %d\n", i, nu_bin[i]);
for (int i = 0; i < nreactions; ++i) {
std::string pstr, rstr;
@ -558,8 +558,8 @@ void FixRX::initSparse()
pstr += atom->dvname[k];
}
}
if (comm->me == 0 && Verbosity > 1)
printf("rx%3d: %s %s %s\n", i, rstr.c_str(), /*reversible[i]*/ (false) ? "<=>" : "=", pstr.c_str());
if (comm->me == 0 && Verbosity > 1 && screen)
fprintf(screen,"rx%3d: %s %s %s\n", i, rstr.c_str(), /*reversible[i]*/ (false) ? "<=>" : "=", pstr.c_str());
}
// end for nreactions
}

View File

@ -1898,7 +1898,6 @@ void PPPMKokkos<DeviceType>::poisson_ik_triclinic()
numz_fft = nzhi_fft-nzlo_fft + 1;
numy_fft = nyhi_fft-nylo_fft + 1;
numx_fft = nxhi_fft-nxlo_fft + 1;
const int inum_fft = numz_fft*numy_fft*numx_fft;
numz_inout = (nzhi_in-nzlo_out)-(nzlo_in-nzlo_out) + 1;
numy_inout = (nyhi_in-nylo_out)-(nylo_in-nylo_out) + 1;

View File

@ -61,7 +61,7 @@ Finish::Finish(LAMMPS *lmp) : Pointers(lmp) {}
void Finish::end(int flag)
{
int i,m,nneigh,nneighfull;
int i,nneigh,nneighfull;
int histo[10];
int minflag,prdflag,tadflag,hyperflag;
int timeflag,fftflag,histoflag,neighflag;

View File

@ -46,8 +46,6 @@ int ImbalanceNeigh::options(int narg, char **arg)
void ImbalanceNeigh::compute(double *weight)
{
int req;
if (factor == 0.0) return;
// cannot use neighbor list weight with KOKKOS using GPUs