dead code and uninitialized variables detected by clang

This commit is contained in:
Axel Kohlmeyer 2018-02-23 12:04:15 +01:00
parent 77efd3dfb3
commit 523978b4c7
2 changed files with 2 additions and 1 deletions

View File

@ -364,7 +364,7 @@ void PairEDIPMulti::edip_fc(double r, Param *param, double &f, double &fdr)
double c = param->cutoffC; double c = param->cutoffC;
double alpha = param->alpha; double alpha = param->alpha;
double x; double x;
double v1, v2, v3; double v1, v2;
if(r < c + 1E-6) if(r < c + 1E-6)
{ {

View File

@ -1700,6 +1700,7 @@ void PairLJLongTIP4PLongOMP::eval_outer(int iifrom, int iito, ThrData * const th
jnum = numneigh[i]; jnum = numneigh[i];
offseti = offset[itype]; offseti = offset[itype];
lj1i = lj1[itype]; lj2i = lj2[itype]; lj3i = lj3[itype]; lj4i = lj4[itype]; lj1i = lj1[itype]; lj2i = lj2[itype]; lj3i = lj3[itype]; lj4i = lj4[itype];
fxtmp = fytmp = fztmp = 0.0;
for (jj = 0; jj < jnum; jj++) { for (jj = 0; jj < jnum; jj++) {
j = jlist[jj]; j = jlist[jj];