remove dead code and silence compiler warnings
This commit is contained in:
@ -206,7 +206,7 @@ void ComputeStressCartesian::init_list(int /* id */, NeighList *ptr)
|
||||
void ComputeStressCartesian::compute_array()
|
||||
{
|
||||
int i, j, ii, jj, inum, jnum, itype, jtype;
|
||||
int bin, bin1, bin2, bin3;
|
||||
int bin, bin1, bin2;
|
||||
tagint itag, jtag;
|
||||
double xtmp, ytmp, ztmp, delx, dely, delz;
|
||||
double rsq, fpair, factor_coul, factor_lj;
|
||||
@ -266,7 +266,6 @@ void ComputeStressCartesian::compute_array()
|
||||
Pair *pair = force->pair;
|
||||
double **cutsq = force->pair->cutsq;
|
||||
|
||||
double risq, rjsq;
|
||||
double xi1, xi2, xj1, xj2;
|
||||
|
||||
for (ii = 0; ii < inum; ii++) {
|
||||
@ -362,7 +361,7 @@ void ComputeStressCartesian::compute_pressure_1d(double fpair, double xi, double
|
||||
double dely, double delz)
|
||||
{
|
||||
int bin_s, bin_e, bin_step, bin, bin_limit;
|
||||
double xa, xb, l_sum;
|
||||
double xa, xb;
|
||||
|
||||
if (xi < domain->boxlo[dir1])
|
||||
xi += (domain->boxhi[dir1] - domain->boxlo[dir1]);
|
||||
@ -456,8 +455,8 @@ void ComputeStressCartesian::compute_pressure_1d(double fpair, double xi, double
|
||||
}
|
||||
}
|
||||
|
||||
void ComputeStressCartesian::compute_pressure_2d(double fpair, double xi, double yi, double xj,
|
||||
double yj, double delx, double dely, double delz)
|
||||
void ComputeStressCartesian::compute_pressure_2d(double fpair, double xi, double yi, double /*xj*/,
|
||||
double /*yj*/, double delx, double dely, double delz)
|
||||
{
|
||||
int bin1, bin2, next_bin1, next_bin2;
|
||||
double la = 0.0, lb = 0.0, l_sum = 0.0;
|
||||
|
||||
@ -189,7 +189,6 @@ void ComputeStressSpherical::compute_array()
|
||||
double r, vr, vt, vp, theta;
|
||||
double **x = atom->x;
|
||||
double **v = atom->v;
|
||||
double *mass = atom->mass;
|
||||
tagint *tag = atom->tag;
|
||||
int *type = atom->type;
|
||||
int *mask = atom->mask;
|
||||
@ -247,10 +246,6 @@ void ComputeStressSpherical::compute_array()
|
||||
Pair *pair = force->pair;
|
||||
double **cutsq = force->pair->cutsq;
|
||||
|
||||
double risq, rjsq;
|
||||
double dir1i, dir2i, dir3i, dir1j, dir2j, dir3j;
|
||||
double xi, yi, zi, xj, yj, zj;
|
||||
|
||||
double qi[3], l1, l2, l3, l4, R1, R2, Fa, Fb, l_sum;
|
||||
double rij, f, ririj, sqr, la, lb, sql0, lambda0;
|
||||
double rsqxy, ririjxy, sqrixy, sqlxy0, A, B, C;
|
||||
|
||||
@ -524,7 +524,6 @@ double PairMesoCNT::init_one(int /* i */, int /* j */)
|
||||
void PairMesoCNT::bond_neigh()
|
||||
{
|
||||
int nlocal = atom->nlocal;
|
||||
int nghost = atom->nghost;
|
||||
int **bondlist = neighbor->bondlist;
|
||||
int nbondlist = neighbor->nbondlist;
|
||||
|
||||
|
||||
@ -75,11 +75,8 @@ void MLIAPModelNN::read_coeffs(char *coefffilename)
|
||||
utils::getsyserror());
|
||||
}
|
||||
|
||||
char line[MAXLINE], *ptr, *tstr;
|
||||
int eof = 0;
|
||||
|
||||
int n;
|
||||
int nwords = 0;
|
||||
char line[MAXLINE], *ptr;
|
||||
int n, eof = 0, nwords = 0;
|
||||
while (nwords == 0) {
|
||||
if (comm->me == 0) {
|
||||
ptr = fgets(line, MAXLINE, fpcoeff);
|
||||
|
||||
@ -197,7 +197,6 @@ void PairPACE::compute(int eflag, int vflag)
|
||||
|
||||
for (jj = 0; jj < jnum; jj++) {
|
||||
j = jlist[jj];
|
||||
const int jtype = type[j];
|
||||
j &= NEIGHMASK;
|
||||
delx = x[j][0] - xtmp;
|
||||
dely = x[j][1] - ytmp;
|
||||
|
||||
Reference in New Issue
Block a user