git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@371 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -45,6 +45,7 @@ FixNPH::FixNPH(LAMMPS *lmp, int narg, char **arg) :
|
||||
|
||||
restart_global = 1;
|
||||
pressure_every = 1;
|
||||
box_change = 1;
|
||||
|
||||
double p_period[3];
|
||||
if (strcmp(arg[3],"xyz") == 0) {
|
||||
@ -119,14 +120,15 @@ FixNPH::FixNPH(LAMMPS *lmp, int narg, char **arg) :
|
||||
} else error->all("Illegal fix nph command");
|
||||
}
|
||||
|
||||
// check for periodicity in controlled dimensions
|
||||
// error checks
|
||||
|
||||
if (domain->triclinic) error->all("Cannot use fix nph with triclinic box");
|
||||
if (p_flag[0] && domain->xperiodic == 0)
|
||||
error->all("Cannot fix nph on a non-periodic dimension");
|
||||
error->all("Cannot use fix nph on a non-periodic dimension");
|
||||
if (p_flag[1] && domain->yperiodic == 0)
|
||||
error->all("Cannot fix nph on a non-periodic dimension");
|
||||
error->all("Cannot use fix nph on a non-periodic dimension");
|
||||
if (p_flag[2] && domain->zperiodic == 0)
|
||||
error->all("Cannot fix nph on a non-periodic dimension");
|
||||
error->all("Cannot use fix nph on a non-periodic dimension");
|
||||
|
||||
// convert input periods to frequencies
|
||||
|
||||
|
||||
Reference in New Issue
Block a user