dead code removal and compiler warning silencing

This commit is contained in:
Axel Kohlmeyer 2019-02-13 07:29:45 -05:00
parent cf86334f43
commit 393948f363
No known key found for this signature in database
GPG Key ID: D9B44E93BF0C375A
3 changed files with 3 additions and 5 deletions

View File

@ -82,8 +82,8 @@ void PairLebedevaZ::compute(int eflag, int vflag)
{
int i,j,ii,jj,inum,jnum,itype,jtype;
double xtmp,ytmp,ztmp,delx,dely,delz,evdwl,fpair,der;
double rsq,r,rhosq,rho,exp1,exp2,exp3,r6,r8;
double frho,sumD,Ulm,fxy,fz,rdsq;
double rsq,r,rhosq,exp1,exp2,exp3,r6,r8;
double sumD,Ulm,fxy,fz;
int *ilist,*jlist,*numneigh,**firstneigh;
evdwl = 0.0;
@ -120,7 +120,6 @@ void PairLebedevaZ::compute(int eflag, int vflag)
delz = ztmp - x[j][2];
// rho^2 = r^2 - z^2
rhosq = delx*delx + dely*dely;
rho = sqrt(rhosq);
rsq = rhosq + delz*delz;
if (rsq < cutsq[itype][jtype]) {

View File

@ -197,7 +197,7 @@ void ReaderMolfile::skip()
bigint ReaderMolfile::read_header(double box[3][3], int &triclinic,
int fieldinfo, int nfield,
int *fieldtype, char **fieldlabel,
int *fieldtype, char ** /* fieldlabel */,
int scaleflag, int wrapflag, int &fieldflag,
int &xflag, int &yflag, int &zflag)
{

View File

@ -103,7 +103,6 @@ bool mat_same(T x1[3][3], T x2[3][3])
template<typename T>
void transpose(T m[3][3])
{
T t[3][3];
for (int k=0;k<3;k++)
for (int j=k+1;j<3;j++) {
T x = m[k][j];