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

This commit is contained in:
sjplimp
2012-10-23 15:51:01 +00:00
parent 68415eae0e
commit 6394161a7c
5 changed files with 32 additions and 12 deletions

View File

@ -244,12 +244,18 @@ void Atom::map_one(int global, int local)
void Atom::map_delete()
{
memory->destroy(sametag);
sametag = NULL;
if (map_style == 1) {
if (map_tag_max) memory->destroy(map_array);
memory->destroy(map_array);
map_array = NULL;
} else {
if (map_nhash) {
delete [] map_bucket;
delete [] map_hash;
map_bucket = NULL;
map_hash = NULL;
}
map_nhash = 0;
}