diff --git a/src/MANYBODY/fix_qeq_comb.cpp b/src/MANYBODY/fix_qeq_comb.cpp index 6f724a18f6..57d7cf16be 100644 --- a/src/MANYBODY/fix_qeq_comb.cpp +++ b/src/MANYBODY/fix_qeq_comb.cpp @@ -208,8 +208,6 @@ void FixQEQComb::post_force(int vflag) double *q = atom->q; int *mask = atom->mask; - int *tag = atom->tag; - int nlocal = atom->nlocal; inum = comb->list->inum; ilist = comb->list->ilist; diff --git a/src/SHOCK/fix_append_atoms.cpp b/src/SHOCK/fix_append_atoms.cpp index 6ece30bb2c..79a91ef85c 100644 --- a/src/SHOCK/fix_append_atoms.cpp +++ b/src/SHOCK/fix_append_atoms.cpp @@ -315,7 +315,8 @@ int FixAppendAtoms::get_spatial() if (domain->boxhi[2] - shockfront_loc < spatlead) advance = 1; - delete [] pos,val; + delete [] pos; + delete [] val; } advance_sum = 0; diff --git a/src/USER-REAXC/fix_reaxc_bonds.cpp b/src/USER-REAXC/fix_reaxc_bonds.cpp index 92a542e1f2..f20c770312 100644 --- a/src/USER-REAXC/fix_reaxc_bonds.cpp +++ b/src/USER-REAXC/fix_reaxc_bonds.cpp @@ -119,8 +119,6 @@ void FixReaxCBonds::init() void FixReaxCBonds::end_of_step() { - bigint ntimestep = update->ntimestep; - Output_ReaxC_Bonds(update->ntimestep,fp); if (me == 0) fflush(fp); } @@ -130,8 +128,8 @@ void FixReaxCBonds::end_of_step() void FixReaxCBonds::Output_ReaxC_Bonds(bigint ntimestep, FILE *fp) { - int i, j, k, itype, jtype, iatom, itag, jtag; - int b, nbuf, nbuf_local, inode; + int i, j; + int nbuf, nbuf_local; int nlocal_max, numbonds, numbonds_max; double *buf; @@ -178,7 +176,7 @@ void FixReaxCBonds::Output_ReaxC_Bonds(bigint ntimestep, FILE *fp) void FixReaxCBonds::FindBond(struct _reax_list *lists, int &numbonds) { int *ilist, i, ii, inum; - int j, pj, nj, jtag, jtype; + int j, pj, nj, jtag; double bo_tmp,bo_cut; inum = reaxc->list->inum; @@ -211,7 +209,7 @@ void FixReaxCBonds::FindBond(struct _reax_list *lists, int &numbonds) void FixReaxCBonds::PassBuffer(double *buf, int &nbuf_local) { - int i, j, k, jtag, numbonds; + int i, j, k, numbonds; int nlocal = atom->nlocal; j = 2; @@ -247,8 +245,8 @@ void FixReaxCBonds::PassBuffer(double *buf, int &nbuf_local) void FixReaxCBonds::RecvBuffer(double *buf, int nbuf, int nbuf_local, int natoms, int maxnum) { - int i, j, k, l, itype, jtype, itag, jtag; - int inode, nlocal_tmp, numbonds, molid; + int i, j, k, itype, itag, jtag; + int inode, nlocal_tmp, numbonds; int nlocal = atom->nlocal; bigint ntimestep = update->ntimestep; double sbotmp, nlptmp, avqtmp, abotmp; diff --git a/src/USER-REAXC/reaxc_torsion_angles.cpp b/src/USER-REAXC/reaxc_torsion_angles.cpp index 1cbcc5892a..952a7cca95 100644 --- a/src/USER-REAXC/reaxc_torsion_angles.cpp +++ b/src/USER-REAXC/reaxc_torsion_angles.cpp @@ -160,7 +160,7 @@ void Torsion_Angles( reax_system *system, control_params *control, { int i, j, k, l, pi, pj, pk, pl, pij, plk, natoms; int type_i, type_j, type_k, type_l; - int start_j, end_j, start_k, end_k; + int start_j, end_j; int start_pj, end_pj, start_pk, end_pk; int num_frb_intrs = 0; @@ -203,7 +203,7 @@ void Torsion_Angles( reax_system *system, control_params *control, // Virial tallying variables real delil[3], deljl[3], delkl[3]; - real eng_tmp, f_scaler, fi_tmp[3], fj_tmp[3], fk_tmp[3]; + real eng_tmp, fi_tmp[3], fj_tmp[3], fk_tmp[3]; // sprintf( fname, "tor%d.out", system->my_rank ); // ftor = fopen( fname, "w" ); diff --git a/src/pair.cpp b/src/pair.cpp index cc8e0f2551..dd00897292 100644 --- a/src/pair.cpp +++ b/src/pair.cpp @@ -494,7 +494,7 @@ void Pair::init_tables(double cut_coul, double *cut_respa) void Pair::init_tables_disp(double cut_lj_global) { int masklo,maskhi; - double r, rsq, r2inv, force_coul, force_lj; + double rsq; double g_ewald_6 = force->kspace->g_ewald_6; double g2 = g_ewald_6*g_ewald_6, g6 = g2*g2*g2, g8 = g6*g2; @@ -567,7 +567,7 @@ void Pair::init_tables_disp(double cut_lj_global) // deltas at itablemax only needed if corresponding rsq < cut*cut // if so, compute deltas between rsq and cut*cut - double f_tmp,c_tmp,e_tmp,p_tmp = 0.0,v_tmp = 0.0; + double f_tmp,e_tmp; double cut_lj_globalsq; itablemin = minrsq_lookup.i & ndispmask; itablemin >>= ndispshiftbits;