remove whitespace
This commit is contained in:
@ -65,7 +65,6 @@ PairSNAP::~PairSNAP()
|
|||||||
memory->destroy(beta);
|
memory->destroy(beta);
|
||||||
memory->destroy(bispectrum);
|
memory->destroy(bispectrum);
|
||||||
|
|
||||||
|
|
||||||
delete snaptr;
|
delete snaptr;
|
||||||
|
|
||||||
if (allocated) {
|
if (allocated) {
|
||||||
@ -180,21 +179,15 @@ void PairSNAP::compute(int eflag, int vflag)
|
|||||||
|
|
||||||
snaptr->compute_deidrj(fij);
|
snaptr->compute_deidrj(fij);
|
||||||
|
|
||||||
// scaling
|
f[i][0] += fij[0] * scale[itype][itype];
|
||||||
fij[0] *= scale[itype][itype];
|
f[i][1] += fij[1] * scale[itype][itype];
|
||||||
fij[1] *= scale[itype][itype];
|
f[i][2] += fij[2] * scale[itype][itype];
|
||||||
fij[2] *= scale[itype][itype];
|
f[j][0] -= fij[0] * scale[itype][itype];
|
||||||
|
f[j][1] -= fij[1] * scale[itype][itype];
|
||||||
f[i][0] += fij[0];
|
f[j][2] -= fij[2] * scale[itype][itype];
|
||||||
f[i][1] += fij[1];
|
|
||||||
f[i][2] += fij[2];
|
|
||||||
f[j][0] -= fij[0];
|
|
||||||
f[j][1] -= fij[1];
|
|
||||||
f[j][2] -= fij[2];
|
|
||||||
|
|
||||||
// tally per-atom virial contribution
|
// tally per-atom virial contribution
|
||||||
|
|
||||||
|
|
||||||
if (vflag)
|
if (vflag)
|
||||||
ev_tally_xyz(i,j,nlocal,newton_pair,0.0,0.0,
|
ev_tally_xyz(i,j,nlocal,newton_pair,0.0,0.0,
|
||||||
fij[0],fij[1],fij[2],
|
fij[0],fij[1],fij[2],
|
||||||
@ -385,7 +378,6 @@ void PairSNAP::settings(int narg, char ** /* arg */)
|
|||||||
void PairSNAP::coeff(int narg, char **arg)
|
void PairSNAP::coeff(int narg, char **arg)
|
||||||
{
|
{
|
||||||
if (!allocated) allocate();
|
if (!allocated) allocate();
|
||||||
|
|
||||||
if (narg != 4 + atom->ntypes) error->all(FLERR,"Incorrect args for pair coefficients");
|
if (narg != 4 + atom->ntypes) error->all(FLERR,"Incorrect args for pair coefficients");
|
||||||
|
|
||||||
map_element2type(narg-4,arg+4);
|
map_element2type(narg-4,arg+4);
|
||||||
@ -394,8 +386,6 @@ void PairSNAP::coeff(int narg, char **arg)
|
|||||||
|
|
||||||
read_files(arg[2],arg[3]);
|
read_files(arg[2],arg[3]);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if (!quadraticflag)
|
if (!quadraticflag)
|
||||||
ncoeff = ncoeffall - 1;
|
ncoeff = ncoeffall - 1;
|
||||||
else {
|
else {
|
||||||
@ -741,7 +731,6 @@ double PairSNAP::memory_usage()
|
|||||||
return bytes;
|
return bytes;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void *PairSNAP::extract(const char *str, int &dim)
|
void *PairSNAP::extract(const char *str, int &dim)
|
||||||
{
|
{
|
||||||
dim = 2;
|
dim = 2;
|
||||||
|
|||||||
Reference in New Issue
Block a user