git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@10660 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp
2013-08-23 14:10:28 +00:00
parent 31b31f0a6a
commit 9e6e3ea344
2 changed files with 6 additions and 2 deletions

View File

@ -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()