git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@8406 f3b2605a-c512-4ea7-a41b-209d697bcdaa
This commit is contained in:
@ -233,6 +233,7 @@ Atom::~Atom()
|
|||||||
|
|
||||||
// delete mapping data structures
|
// delete mapping data structures
|
||||||
|
|
||||||
|
memory->destroy(sametag);
|
||||||
map_delete();
|
map_delete();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user