remove unused variables and reduce unused parameter warnings
This commit is contained in:
@ -214,7 +214,7 @@ void ComputeHMA::init() {
|
||||
neighbor->requests[irequest]->occasional = 1;
|
||||
}
|
||||
|
||||
void ComputeHMA::init_list(int id, NeighList *ptr)
|
||||
void ComputeHMA::init_list(int /* id */, NeighList *ptr)
|
||||
{
|
||||
list = ptr;
|
||||
}
|
||||
@ -318,11 +318,9 @@ void ComputeHMA::compute_vector()
|
||||
double phiSum = 0.0;
|
||||
if (computeCv>-1) {
|
||||
comm->forward_comm_compute(this);
|
||||
int *type = atom->type;
|
||||
double** cutsq = force->pair->cutsq;
|
||||
if (force->pair) {
|
||||
double **x = atom->x;
|
||||
double **f = atom->f;
|
||||
int *type = atom->type;
|
||||
int nlocal = atom->nlocal;
|
||||
double *special_lj = force->special_lj;
|
||||
@ -459,16 +457,8 @@ double ComputeHMA::virial_compute(int n)
|
||||
/* ---------------------------------------------------------------------- */
|
||||
|
||||
int ComputeHMA::pack_forward_comm(int n, int *list, double *buf,
|
||||
int pbc_flag, int *pbc)
|
||||
int /* pbc_flag */, int * /* pbc */)
|
||||
{
|
||||
double **xoriginal = fix->astore;
|
||||
imageint *image = atom->image;
|
||||
double **x = atom->x;
|
||||
double *h = domain->h;
|
||||
double xprd = domain->xprd;
|
||||
double yprd = domain->yprd;
|
||||
double zprd = domain->zprd;
|
||||
|
||||
int m = 0;
|
||||
for (int ii = 0; ii < n; ii++) {
|
||||
int i = list[ii];
|
||||
@ -483,7 +473,6 @@ int ComputeHMA::pack_forward_comm(int n, int *list, double *buf,
|
||||
|
||||
void ComputeHMA::unpack_forward_comm(int n, int first, double *buf)
|
||||
{
|
||||
double **xoriginal = fix->astore;
|
||||
int i,m,last;
|
||||
|
||||
m = 0;
|
||||
|
||||
@ -2827,7 +2827,7 @@ void FixBondReact::read(int myrxn)
|
||||
|
||||
// loop over sections of superimpose file
|
||||
|
||||
int equivflag = 0, edgeflag = 0, bondflag = 0, customedgesflag = 0;
|
||||
int equivflag = 0, bondflag = 0, customedgesflag = 0;
|
||||
while (strlen(keyword)) {
|
||||
if (strcmp(keyword,"BondingIDs") == 0) {
|
||||
bondflag = 1;
|
||||
@ -2836,7 +2836,6 @@ void FixBondReact::read(int myrxn)
|
||||
readline(line);
|
||||
sscanf(line,"%d",&jbonding[myrxn]);
|
||||
} else if (strcmp(keyword,"EdgeIDs") == 0) {
|
||||
edgeflag = 1;
|
||||
EdgeIDs(line, myrxn);
|
||||
} else if (strcmp(keyword,"Equivalences") == 0) {
|
||||
equivflag = 1;
|
||||
|
||||
@ -446,9 +446,9 @@ void PairILPGrapheneHBN::compute(int eflag, int vflag)
|
||||
van der Waals forces and energy
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairILPGrapheneHBN::calc_FvdW(int eflag, int vflag)
|
||||
void PairILPGrapheneHBN::calc_FvdW(int eflag, int /* vflag */)
|
||||
{
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype,k,l,kk,ll;
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype;
|
||||
tagint itag,jtag;
|
||||
double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair;
|
||||
double rsq,r,Rcut,r2inv,r6inv,r8inv,Tap,dTap,Vilp,TSvdw,TSvdw2inv,fsum;
|
||||
@ -544,15 +544,15 @@ void PairILPGrapheneHBN::calc_FvdW(int eflag, int vflag)
|
||||
Repulsive forces and energy
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairILPGrapheneHBN::calc_FRep(int eflag, int vflag)
|
||||
void PairILPGrapheneHBN::calc_FRep(int eflag, int /* vflag */)
|
||||
{
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype,k,kk;
|
||||
double prodnorm1,fkcx,fkcy,fkcz;
|
||||
double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair,fpair1;
|
||||
double rsq,r,Rcut,rhosq1,exp0,exp1,r2inv,r6inv,r8inv,Tap,dTap,Vilp;
|
||||
double frho1,TSvdw,TSvdw2inv,Erep,fsum,rdsq1;
|
||||
double rsq,r,Rcut,rhosq1,exp0,exp1,Tap,dTap,Vilp;
|
||||
double frho1,Erep,fsum,rdsq1;
|
||||
int *ilist,*jlist,*numneigh,**firstneigh;
|
||||
int *ILP_neighs_i,*ILP_neighs_j;
|
||||
int *ILP_neighs_i;
|
||||
|
||||
evdwl = 0.0;
|
||||
|
||||
|
||||
@ -448,9 +448,9 @@ void PairKolmogorovCrespiFull::compute(int eflag, int vflag)
|
||||
van der Waals forces and energy
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairKolmogorovCrespiFull::calc_FvdW(int eflag, int vflag)
|
||||
void PairKolmogorovCrespiFull::calc_FvdW(int eflag, int /* vflag */)
|
||||
{
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype,k,l,kk,ll;
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype;
|
||||
tagint itag,jtag;
|
||||
double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair;
|
||||
double rsq,r,Rcut,r2inv,r6inv,r8inv,Tap,dTap,Vkc,fsum;
|
||||
@ -544,15 +544,15 @@ void PairKolmogorovCrespiFull::calc_FvdW(int eflag, int vflag)
|
||||
Repulsive forces and energy
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairKolmogorovCrespiFull::calc_FRep(int eflag, int vflag)
|
||||
void PairKolmogorovCrespiFull::calc_FRep(int eflag, int /* vflag */)
|
||||
{
|
||||
int i,j,ii,jj,inum,jnum,itype,jtype,k,kk;
|
||||
double prodnorm1,fkcx,fkcy,fkcz;
|
||||
double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair,fpair1;
|
||||
double rsq,r,rhosq1,exp0,exp1,r2inv,r6inv,r8inv,Tap,dTap,Vkc;
|
||||
double rsq,r,rhosq1,exp0,exp1,r2inv,r6inv,Tap,dTap,Vkc;
|
||||
double frho_ij,sumC1,sumC11,sumCff,fsum,rho_ij;
|
||||
int *ilist,*jlist,*numneigh,**firstneigh;
|
||||
int *KC_neighs_i,*KC_neighs_j;
|
||||
int *KC_neighs_i;
|
||||
|
||||
evdwl = 0.0;
|
||||
|
||||
@ -608,7 +608,7 @@ void PairKolmogorovCrespiFull::calc_FRep(int eflag, int vflag)
|
||||
r = sqrt(rsq);
|
||||
r2inv = 1.0/rsq;
|
||||
r6inv = r2inv*r2inv*r2inv;
|
||||
r8inv = r2inv*r6inv;
|
||||
|
||||
// turn on/off taper function
|
||||
if (tap_flag) {
|
||||
Tap = calc_Tap(r,sqrt(cutsq[itype][jtype]));
|
||||
|
||||
@ -374,7 +374,7 @@ void PairLocalDensity::allocate()
|
||||
global settings
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
void PairLocalDensity::settings(int narg, char **arg)
|
||||
void PairLocalDensity::settings(int narg, char ** /* arg */)
|
||||
{
|
||||
if (narg > 0) error->all(FLERR,"Illegal pair_style command");
|
||||
}
|
||||
@ -438,7 +438,7 @@ void PairLocalDensity::init_style()
|
||||
init for one type pair i,j and corresponding j,i
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
double PairLocalDensity::init_one(int i, int j)
|
||||
double PairLocalDensity::init_one(int /* i */, int /* j */)
|
||||
{
|
||||
// single global cutoff = max of all uppercuts read in from LD file
|
||||
|
||||
@ -457,9 +457,9 @@ double PairLocalDensity::init_one(int i, int j)
|
||||
of the LD potential without doing an actual MD run
|
||||
---------------------------------------------------------------------------*/
|
||||
|
||||
double PairLocalDensity::single(int i, int j, int itype, int jtype, double rsq,
|
||||
double factor_coul, double factor_lj,
|
||||
double &fforce)
|
||||
double PairLocalDensity::single(int /* i */, int /* j */, int itype, int jtype,
|
||||
double rsq, double /* factor_coul */,
|
||||
double /* factor_lj */, double &fforce)
|
||||
{
|
||||
int m, k, index;
|
||||
double rsqinv, p, uLD;
|
||||
@ -816,7 +816,8 @@ void PairLocalDensity::parse_file(char *filename) {
|
||||
communication routines
|
||||
------------------------------------------------------------------------- */
|
||||
|
||||
int PairLocalDensity::pack_comm(int n, int *list, double *buf, int pbc_flag, int *pbc) {
|
||||
int PairLocalDensity::pack_comm(int n, int *list, double *buf,
|
||||
int /* pbc_flag */, int * /* pbc */) {
|
||||
int i,j,k;
|
||||
int m;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user