diff --git a/src/EXTRA-COMPUTE/compute_stress_cartesian.cpp b/src/EXTRA-COMPUTE/compute_stress_cartesian.cpp index 5c079620a5..182a961738 100644 --- a/src/EXTRA-COMPUTE/compute_stress_cartesian.cpp +++ b/src/EXTRA-COMPUTE/compute_stress_cartesian.cpp @@ -206,7 +206,7 @@ void ComputeStressCartesian::init_list(int /* id */, NeighList *ptr) void ComputeStressCartesian::compute_array() { int i, j, ii, jj, inum, jnum, itype, jtype; - int bin, bin1, bin2, bin3; + int bin, bin1, bin2; tagint itag, jtag; double xtmp, ytmp, ztmp, delx, dely, delz; double rsq, fpair, factor_coul, factor_lj; @@ -266,7 +266,6 @@ void ComputeStressCartesian::compute_array() Pair *pair = force->pair; double **cutsq = force->pair->cutsq; - double risq, rjsq; double xi1, xi2, xj1, xj2; for (ii = 0; ii < inum; ii++) { @@ -362,7 +361,7 @@ void ComputeStressCartesian::compute_pressure_1d(double fpair, double xi, double double dely, double delz) { int bin_s, bin_e, bin_step, bin, bin_limit; - double xa, xb, l_sum; + double xa, xb; if (xi < domain->boxlo[dir1]) xi += (domain->boxhi[dir1] - domain->boxlo[dir1]); @@ -456,8 +455,8 @@ void ComputeStressCartesian::compute_pressure_1d(double fpair, double xi, double } } -void ComputeStressCartesian::compute_pressure_2d(double fpair, double xi, double yi, double xj, - double yj, double delx, double dely, double delz) +void ComputeStressCartesian::compute_pressure_2d(double fpair, double xi, double yi, double /*xj*/, + double /*yj*/, double delx, double dely, double delz) { int bin1, bin2, next_bin1, next_bin2; double la = 0.0, lb = 0.0, l_sum = 0.0; diff --git a/src/EXTRA-COMPUTE/compute_stress_spherical.cpp b/src/EXTRA-COMPUTE/compute_stress_spherical.cpp index 824e251d53..2210bc61a7 100644 --- a/src/EXTRA-COMPUTE/compute_stress_spherical.cpp +++ b/src/EXTRA-COMPUTE/compute_stress_spherical.cpp @@ -189,7 +189,6 @@ void ComputeStressSpherical::compute_array() double r, vr, vt, vp, theta; double **x = atom->x; double **v = atom->v; - double *mass = atom->mass; tagint *tag = atom->tag; int *type = atom->type; int *mask = atom->mask; @@ -247,10 +246,6 @@ void ComputeStressSpherical::compute_array() Pair *pair = force->pair; double **cutsq = force->pair->cutsq; - double risq, rjsq; - double dir1i, dir2i, dir3i, dir1j, dir2j, dir3j; - double xi, yi, zi, xj, yj, zj; - double qi[3], l1, l2, l3, l4, R1, R2, Fa, Fb, l_sum; double rij, f, ririj, sqr, la, lb, sql0, lambda0; double rsqxy, ririjxy, sqrixy, sqlxy0, A, B, C; diff --git a/src/MESONT/pair_mesocnt.cpp b/src/MESONT/pair_mesocnt.cpp index 4d6e30c191..e7625f625c 100644 --- a/src/MESONT/pair_mesocnt.cpp +++ b/src/MESONT/pair_mesocnt.cpp @@ -524,7 +524,6 @@ double PairMesoCNT::init_one(int /* i */, int /* j */) void PairMesoCNT::bond_neigh() { int nlocal = atom->nlocal; - int nghost = atom->nghost; int **bondlist = neighbor->bondlist; int nbondlist = neighbor->nbondlist; diff --git a/src/ML-IAP/mliap_model_nn.cpp b/src/ML-IAP/mliap_model_nn.cpp index a68b29eefa..c64fae2a1f 100644 --- a/src/ML-IAP/mliap_model_nn.cpp +++ b/src/ML-IAP/mliap_model_nn.cpp @@ -75,11 +75,8 @@ void MLIAPModelNN::read_coeffs(char *coefffilename) utils::getsyserror()); } - char line[MAXLINE], *ptr, *tstr; - int eof = 0; - - int n; - int nwords = 0; + char line[MAXLINE], *ptr; + int n, eof = 0, nwords = 0; while (nwords == 0) { if (comm->me == 0) { ptr = fgets(line, MAXLINE, fpcoeff); diff --git a/src/ML-PACE/pair_pace.cpp b/src/ML-PACE/pair_pace.cpp index 56e3d6005d..e4141ae4b8 100644 --- a/src/ML-PACE/pair_pace.cpp +++ b/src/ML-PACE/pair_pace.cpp @@ -197,7 +197,6 @@ void PairPACE::compute(int eflag, int vflag) for (jj = 0; jj < jnum; jj++) { j = jlist[jj]; - const int jtype = type[j]; j &= NEIGHMASK; delx = x[j][0] - xtmp; dely = x[j][1] - ytmp;