git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8982 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -301,11 +301,12 @@ void PPPM::init()
|
|||||||
order--;
|
order--;
|
||||||
iteration++;
|
iteration++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (order < minorder) error->all(FLERR,"PPPM order < minimum allowed order");
|
||||||
|
|
||||||
if (!overlap_allowed && cgtmp->ghost_overlap())
|
if (!overlap_allowed && cgtmp->ghost_overlap())
|
||||||
error->all(FLERR,"PPPM grid stencil extends "
|
error->all(FLERR,"PPPM grid stencil extends "
|
||||||
"beyond nearest neighbor processor");
|
"beyond nearest neighbor processor");
|
||||||
if (order < minorder) error->all(FLERR,"PPPM order < minimum allowed order");
|
|
||||||
if (cgtmp) delete cgtmp;
|
if (cgtmp) delete cgtmp;
|
||||||
|
|
||||||
// adjust g_ewald
|
// adjust g_ewald
|
||||||
@ -566,9 +567,9 @@ void PPPM::compute(int eflag, int vflag)
|
|||||||
// extra per-atom energy/virial communication
|
// extra per-atom energy/virial communication
|
||||||
|
|
||||||
if (evflag_atom) {
|
if (evflag_atom) {
|
||||||
if (differentiation_flag == 1)
|
if (differentiation_flag == 1 && vflag_atom)
|
||||||
cg_peratom->forward_comm(this,FORWARD_AD_PERATOM);
|
cg_peratom->forward_comm(this,FORWARD_AD_PERATOM);
|
||||||
else
|
else if (differentiation_flag == 0)
|
||||||
cg_peratom->forward_comm(this,FORWARD_IK_PERATOM);
|
cg_peratom->forward_comm(this,FORWARD_IK_PERATOM);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
#ifdef FIX_CLASS
|
#ifdef FIX_CLASS
|
||||||
|
|
||||||
FixStyle(append_atoms,FixAppendAtoms)
|
FixStyle(append/atoms,FixAppendAtoms)
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
|
||||||
|
|||||||
@ -369,7 +369,7 @@ void KSpace::modify_params(int narg, char **arg)
|
|||||||
else if (strcmp(arg[iarg+1],"ik") == 0) differentiation_flag = 0;
|
else if (strcmp(arg[iarg+1],"ik") == 0) differentiation_flag = 0;
|
||||||
else error->all(FLERR, "Illegal kspace_modify command");
|
else error->all(FLERR, "Illegal kspace_modify command");
|
||||||
iarg += 2;
|
iarg += 2;
|
||||||
} else if (strcmp(arg[iarg],"adjust/cutoff") == 0) {
|
} else if (strcmp(arg[iarg],"cutoff/adjust") == 0) {
|
||||||
if (iarg+2 > narg) error->all(FLERR,"Illegal kspace_modify command");
|
if (iarg+2 > narg) error->all(FLERR,"Illegal kspace_modify command");
|
||||||
if (strcmp(arg[iarg+1],"yes") == 0) adjust_cutoff_flag = 1;
|
if (strcmp(arg[iarg+1],"yes") == 0) adjust_cutoff_flag = 1;
|
||||||
else if (strcmp(arg[iarg+1],"no") == 0) adjust_cutoff_flag = 0;
|
else if (strcmp(arg[iarg+1],"no") == 0) adjust_cutoff_flag = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user