diff --git a/src/KSPACE/pppm_disp.cpp b/src/KSPACE/pppm_disp.cpp index bcb8993ddc..7c1b01f674 100644 --- a/src/KSPACE/pppm_disp.cpp +++ b/src/KSPACE/pppm_disp.cpp @@ -316,7 +316,6 @@ void PPPMDisp::init() for (int i=0; i<=EWALD_MAXORDER; ++i) // transcribe order if (ewald_order&(1<x; double **f = atom->f; int *type = atom->type; - int nlocal = atom->nlocal; - int newton_pair = force->newton_pair; numneigh = list->numneigh; firstneigh = list->firstneigh; diff --git a/src/MLIAP/mliap_model.cpp b/src/MLIAP/mliap_model.cpp index dfe3095541..2facd65ee6 100644 --- a/src/MLIAP/mliap_model.cpp +++ b/src/MLIAP/mliap_model.cpp @@ -142,7 +142,6 @@ void MLIAPModel::read_coeffs(char *coefffilename) } if (comm->me == 0) fclose(fpcoeff); - } /* ---------------------------------------------------------------------- @@ -153,9 +152,7 @@ double MLIAPModel::memory_usage() { double bytes = 0; - int n = atom->ntypes+1; bytes += nelements*nparams*sizeof(double); // coeffelem - return bytes; } diff --git a/src/fix_adapt.cpp b/src/fix_adapt.cpp index 848b0b99a5..a524f92b77 100644 --- a/src/fix_adapt.cpp +++ b/src/fix_adapt.cpp @@ -586,9 +586,9 @@ void FixAdapt::change_settings() // reset radius to new value, for both owned and ghost atoms // also reset rmass to new value assuming density remains constant // for scaleflag, previous_diam_scale is the scale factor on previous step - + if (ad->aparam == DIAMETER) { - double density,scale; + double scale; double *radius = atom->radius; double *rmass = atom->rmass; int *mask = atom->mask; @@ -691,14 +691,14 @@ void FixAdapt::restore_settings() } else if (ad->which == ATOM) { if (diamflag) { - double density,scale; + double scale; double *vec = fix_diam->vstore; double *radius = atom->radius; double *rmass = atom->rmass; int *mask = atom->mask; int nlocal = atom->nlocal; - + if (scaleflag) scale = previous_diam_scale; for (int i = 0; i < nlocal; i++) diff --git a/src/info.cpp b/src/info.cpp index 8cb87e9fea..de0dbb3917 100644 --- a/src/info.cpp +++ b/src/info.cpp @@ -793,7 +793,6 @@ bool Info::is_active(const char *category, const char *name) { if ((category == NULL) || (name == NULL)) return false; const char *style = "none"; - const int len = strlen(name); if (strcmp(category,"package") == 0) { if (strcmp(name,"gpu") == 0) { diff --git a/src/neighbor.cpp b/src/neighbor.cpp index b3b406d604..258646f8a9 100644 --- a/src/neighbor.cpp +++ b/src/neighbor.cpp @@ -1438,7 +1438,7 @@ void Neighbor::init_topology() void Neighbor::print_pairwise_info() { - int i,m; + int i; NeighRequest *rq; const double cutghost = MAX(cutneighmax,comm->cutghostuser); diff --git a/src/pair_table.cpp b/src/pair_table.cpp index d8f1d75958..36eced6d3f 100644 --- a/src/pair_table.cpp +++ b/src/pair_table.cpp @@ -70,7 +70,6 @@ void PairTable::compute(int eflag, int vflag) int i,j,ii,jj,inum,jnum,itype,jtype,itable; double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair; double rsq,factor_lj,fraction,value,a,b; - char estr[128]; int *ilist,*jlist,*numneigh,**firstneigh; Table *tb;