forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@12233 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
9d9b1ae9f1
commit
e8dd5814f3
|
@ -173,11 +173,8 @@ void EwaldDisp::init()
|
|||
error->warning(FLERR,str);
|
||||
}
|
||||
|
||||
if (!function[1] && !function[2])
|
||||
dispersionflag = 0;
|
||||
|
||||
if (!function[3])
|
||||
dipoleflag = 0;
|
||||
if (!function[1] && !function[2]) dispersionflag = 0;
|
||||
if (!function[3]) dipoleflag = 0;
|
||||
|
||||
pair_check();
|
||||
|
||||
|
|
|
@ -52,6 +52,8 @@ PairLJCutTIP4PLong::PairLJCutTIP4PLong(LAMMPS *lmp) :
|
|||
PairLJCutCoulLong(lmp)
|
||||
{
|
||||
tip4pflag = 1;
|
||||
ewaldflag = pppmflag = 0;
|
||||
|
||||
single_enable = 0;
|
||||
respa_enable = 0;
|
||||
writedata = 1;
|
||||
|
|
|
@ -173,7 +173,6 @@ void KSpace::pair_check()
|
|||
{
|
||||
if (force->pair == NULL)
|
||||
error->all(FLERR,"KSpace solver requires a pair style");
|
||||
|
||||
if (ewaldflag && !force->pair->ewaldflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (pppmflag && !force->pair->pppmflag)
|
||||
|
@ -186,19 +185,6 @@ void KSpace::pair_check()
|
|||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (dipoleflag && !force->pair->dipoleflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
|
||||
if (!ewaldflag && force->pair->ewaldflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (!pppmflag && force->pair->pppmflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (!msmflag && force->pair->msmflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (!dispersionflag && force->pair->dispersionflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (!tip4pflag && force->pair->tip4pflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
if (!dipoleflag && force->pair->dipoleflag)
|
||||
error->all(FLERR,"KSpace style is incompatible with Pair style");
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------------
|
||||
|
|
Loading…
Reference in New Issue