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

This commit is contained in:
sjplimp 2008-08-18 20:32:29 +00:00
parent 82ab56af9a
commit 25280443aa
2 changed files with 6 additions and 2 deletions

View File

@ -982,8 +982,12 @@ void Comm::reverse_comm_compute(Compute *compute)
void Comm::irregular()
{
// 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();
atom->nghost = 0;
// subbox bounds for orthogonal or triclinic

View File

@ -477,13 +477,13 @@ void FixDeform::pre_exchange()
domain->xy = set[5].tilt_target = set[5].tilt_flip;
domain->set_global_box();
domain->set_local_box();
double **x = atom->x;
int *image = atom->image;
int nlocal = atom->nlocal;
for (int i = 0; i < nlocal; i++)
domain->remap(x[i],image[i]);
domain->x2lamda(atom->nlocal);
comm->irregular();
domain->lamda2x(atom->nlocal);