forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10660 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
31b31f0a6a
commit
9e6e3ea344
|
@ -344,7 +344,11 @@ void ChangeBox::command(int narg, char **arg)
|
|||
|
||||
// apply shrink-wrap boundary conditions
|
||||
|
||||
if (domain->nonperiodic == 2) domain->reset_box();
|
||||
if (domain->nonperiodic == 2) {
|
||||
if (domain->triclinic) domain->x2lamda(atom->nlocal);
|
||||
domain->reset_box();
|
||||
if (domain->triclinic) domain->lamda2x(atom->nlocal);
|
||||
}
|
||||
|
||||
// move atoms back inside simulation box and to new processors
|
||||
// use remap() instead of pbc()
|
||||
|
|
|
@ -90,7 +90,7 @@ RegCylinder::RegCylinder(LAMMPS *lmp, int narg, char **arg) :
|
|||
if (axis == 'z') lo = zscale*force->numeric(FLERR,arg[6]);
|
||||
}
|
||||
|
||||
if (strcmp(arg[7],"INF") == 0 || strcmp(arg[6],"EDGE") == 0) {
|
||||
if (strcmp(arg[7],"INF") == 0 || strcmp(arg[7],"EDGE") == 0) {
|
||||
if (domain->box_exist == 0)
|
||||
error->all(FLERR,"Cannot use region INF or EDGE when box does not exist");
|
||||
if (axis == 'x') {
|
||||
|
|
Loading…
Reference in New Issue