diff --git a/src/DPD-REACT/fix_rx.cpp b/src/DPD-REACT/fix_rx.cpp index f7a84edf09..dd8eacccc7 100644 --- a/src/DPD-REACT/fix_rx.cpp +++ b/src/DPD-REACT/fix_rx.cpp @@ -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 } diff --git a/src/KOKKOS/pppm_kokkos.cpp b/src/KOKKOS/pppm_kokkos.cpp index a5073129e8..432e866b2c 100644 --- a/src/KOKKOS/pppm_kokkos.cpp +++ b/src/KOKKOS/pppm_kokkos.cpp @@ -1898,7 +1898,6 @@ void PPPMKokkos::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; diff --git a/src/finish.cpp b/src/finish.cpp index f55ec4168c..14dc32fc6b 100644 --- a/src/finish.cpp +++ b/src/finish.cpp @@ -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; diff --git a/src/imbalance_neigh.cpp b/src/imbalance_neigh.cpp index a8733d3cd6..8b5dace4d2 100644 --- a/src/imbalance_neigh.cpp +++ b/src/imbalance_neigh.cpp @@ -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