forked from lijiext/lammps
git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@2062 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
parent
82ab56af9a
commit
25280443aa
|
@ -982,8 +982,12 @@ void Comm::reverse_comm_compute(Compute *compute)
|
||||||
void Comm::irregular()
|
void Comm::irregular()
|
||||||
{
|
{
|
||||||
// clear global->local map since atoms move to new procs
|
// clear global->local map since atoms move to new procs
|
||||||
|
// zero out ghosts so map_set() at end will operate only on local atoms
|
||||||
|
// exchange() doesn't need to zero ghosts b/c borders()
|
||||||
|
// is called right after and it zeroes ghosts and calls map_set()
|
||||||
|
|
||||||
if (map_style) atom->map_clear();
|
if (map_style) atom->map_clear();
|
||||||
|
atom->nghost = 0;
|
||||||
|
|
||||||
// subbox bounds for orthogonal or triclinic
|
// subbox bounds for orthogonal or triclinic
|
||||||
|
|
||||||
|
|
|
@ -477,13 +477,13 @@ void FixDeform::pre_exchange()
|
||||||
domain->xy = set[5].tilt_target = set[5].tilt_flip;
|
domain->xy = set[5].tilt_target = set[5].tilt_flip;
|
||||||
domain->set_global_box();
|
domain->set_global_box();
|
||||||
domain->set_local_box();
|
domain->set_local_box();
|
||||||
|
|
||||||
double **x = atom->x;
|
double **x = atom->x;
|
||||||
int *image = atom->image;
|
int *image = atom->image;
|
||||||
int nlocal = atom->nlocal;
|
int nlocal = atom->nlocal;
|
||||||
for (int i = 0; i < nlocal; i++)
|
for (int i = 0; i < nlocal; i++)
|
||||||
domain->remap(x[i],image[i]);
|
domain->remap(x[i],image[i]);
|
||||||
|
|
||||||
domain->x2lamda(atom->nlocal);
|
domain->x2lamda(atom->nlocal);
|
||||||
comm->irregular();
|
comm->irregular();
|
||||||
domain->lamda2x(atom->nlocal);
|
domain->lamda2x(atom->nlocal);
|
||||||
|
|
Loading…
Reference in New Issue