diff --git a/src/atom.cpp b/src/atom.cpp index afd30b6a98..0c6487357f 100644 --- a/src/atom.cpp +++ b/src/atom.cpp @@ -609,9 +609,6 @@ void Atom::tag_extend() int Atom::tag_consecutive() { - int check[2],check_all[2]; - check[0] = check[1] = 0; - int idmin = static_cast (natoms); int idmax = 0; diff --git a/src/compute_temp_com.cpp b/src/compute_temp_com.cpp index 9891421a74..7ded6c967b 100644 --- a/src/compute_temp_com.cpp +++ b/src/compute_temp_com.cpp @@ -130,7 +130,6 @@ void ComputeTempCOM::compute_vector() if (dynamic) masstotal = group->mass(igroup); group->vcm(igroup,masstotal,vbias); - double **x = atom->x; double **v = atom->v; double *mass = atom->mass; double *rmass = atom->rmass; diff --git a/src/delete_atoms.cpp b/src/delete_atoms.cpp index 3c4299a3cc..8cd9edf7c7 100644 --- a/src/delete_atoms.cpp +++ b/src/delete_atoms.cpp @@ -237,9 +237,8 @@ void DeleteAtoms::delete_overlap(int narg, char **arg) int nall = atom->nlocal + atom->nghost; double *special_coul = force->special_coul; double *special_lj = force->special_lj; - int newton_pair = force->newton_pair; - int i,j,ii,jj,m,inum,jnum,itype,jtype; + int i,j,ii,jj,inum,jnum,itype; double xtmp,ytmp,ztmp,delx,dely,delz,rsq; int *ilist,*jlist,*numneigh,**firstneigh; diff --git a/src/fix_ave_time.cpp b/src/fix_ave_time.cpp index c8ff49945a..5712b1b205 100644 --- a/src/fix_ave_time.cpp +++ b/src/fix_ave_time.cpp @@ -288,8 +288,6 @@ void FixAveTime::init() // set indices and check validity of all computes,fixes,variables // check that fix frequency is acceptable - int ilist = 0; - for (int i = 0; i < nvalues; i++) { if (which[i] == COMPUTE) { int icompute = modify->find_compute(ids[i]); @@ -328,8 +326,7 @@ void FixAveTime::setup(int vflag) void FixAveTime::end_of_step() { - int i,j,k,m; - double tmp; + int i,m; // skip if not step which requires doing something @@ -345,8 +342,6 @@ void FixAveTime::end_of_step() modify->clearstep_compute(); - int ilist = 0; - for (i = 0; i < nvalues; i++) { m = value2index[i]; diff --git a/src/fix_nvt_sllod.cpp b/src/fix_nvt_sllod.cpp index 7c3f303a2f..5f98838d4e 100644 --- a/src/fix_nvt_sllod.cpp +++ b/src/fix_nvt_sllod.cpp @@ -129,7 +129,6 @@ void FixNVTSlodd::final_integrate() // thermostat thermal velocity only // vdelu = SLLOD correction = Hrate*Hinv*vthermal - double **x = atom->x; double **v = atom->v; double **f = atom->f; double *mass = atom->mass; diff --git a/src/fix_nvt_sphere.cpp b/src/fix_nvt_sphere.cpp index 67faeafb3d..b86d27ee85 100644 --- a/src/fix_nvt_sphere.cpp +++ b/src/fix_nvt_sphere.cpp @@ -88,7 +88,6 @@ void FixNVTSphere::initial_integrate(int vflag) double **x = atom->x; double **v = atom->v; double **f = atom->f; - double **quat = atom->quat; double **omega = atom->omega; double **torque = atom->torque; double *mass = atom->mass; diff --git a/src/fix_viscosity.cpp b/src/fix_viscosity.cpp index f542a31fea..3b62746307 100644 --- a/src/fix_viscosity.cpp +++ b/src/fix_viscosity.cpp @@ -138,7 +138,7 @@ void FixViscosity::init() void FixViscosity::end_of_step() { int i,m,insert; - double p,coord,delta; + double coord,delta; MPI_Status status; struct { double value; diff --git a/src/min_cg.cpp b/src/min_cg.cpp index 3b55ca9b93..472381529e 100644 --- a/src/min_cg.cpp +++ b/src/min_cg.cpp @@ -502,7 +502,7 @@ void MinCG::force_clear() int MinCG::linemin_backtrack(int n, double *x, double *dir, double eng, double maxdist, double &alpha, int &nfunc) { - int i,m; + int i; // stopping criterion, must be scaled by normflag