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

This commit is contained in:
sjplimp 2012-06-26 14:29:18 +00:00
parent ae666be85e
commit 4d428c59d7
2 changed files with 2 additions and 2 deletions

View File

@ -233,6 +233,7 @@ Atom::~Atom()
// delete mapping data structures // delete mapping data structures
memory->destroy(sametag);
map_delete(); map_delete();
} }

View File

@ -44,6 +44,7 @@ void Atom::map_init()
for (int i = 0; i < nlocal; i++) max = MAX(max,tag[i]); for (int i = 0; i < nlocal; i++) max = MAX(max,tag[i]);
MPI_Allreduce(&max,&map_tag_max,1,MPI_INT,MPI_MAX,world); MPI_Allreduce(&max,&map_tag_max,1,MPI_INT,MPI_MAX,world);
memory->destroy(sametag);
smax = nlocal + nghost + EXTRA; smax = nlocal + nghost + EXTRA;
memory->create(sametag,smax,"atom:sametag"); memory->create(sametag,smax,"atom:sametag");
@ -243,8 +244,6 @@ void Atom::map_one(int global, int local)
void Atom::map_delete() void Atom::map_delete()
{ {
memory->destroy(sametag);
if (map_style == 1) { if (map_style == 1) {
if (map_tag_max) memory->destroy(map_array); if (map_tag_max) memory->destroy(map_array);
} else { } else {