more code formatting consistency changes for loops and conditionals
This commit is contained in:
@ -566,7 +566,7 @@ void PairLJLongTIP4PLong::compute_inner()
|
||||
rsq = delx*delx + dely*dely + delz*delz;
|
||||
jtype = type[j];
|
||||
|
||||
if (rsq < cut_ljsq[itype][jtype] && rsq < cut_out_off_sq ) { // lj
|
||||
if (rsq < cut_ljsq[itype][jtype] && rsq < cut_out_off_sq) { // lj
|
||||
r2inv = 1.0/rsq;
|
||||
double rn = r2inv*r2inv*r2inv;
|
||||
if (ni == 0) forcelj = rn*(rn*lj1i[jtype]-lj2i[jtype]);
|
||||
@ -819,7 +819,7 @@ void PairLJLongTIP4PLong::compute_middle()
|
||||
rsq = delx*delx + dely*dely + delz*delz;
|
||||
jtype = type[j];
|
||||
|
||||
if (rsq < cut_ljsq[itype][jtype] && rsq >= cut_in_off_sq && rsq <= cut_out_off_sq ) { // lj
|
||||
if (rsq < cut_ljsq[itype][jtype] && rsq >= cut_in_off_sq && rsq <= cut_out_off_sq) { // lj
|
||||
r2inv = 1.0/rsq;
|
||||
double rn = r2inv*r2inv*r2inv;
|
||||
if (ni == 0) forcelj = rn*(rn*lj1i[jtype]-lj2i[jtype]);
|
||||
|
||||
Reference in New Issue
Block a user