Unverified Commit 595aa7df authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fix segfault in atom map hash when using "clear".

parent 09c15ee6
Loading
Loading
Loading
Loading
+1 −1
Changes for src/atom.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -211,7 +211,7 @@ Atom::Atom(LAMMPS *lmp) : Pointers(lmp)
  tag_enable = 1;
  map_style = map_user = 0;
  map_tag_max = -1;
  map_maxarray = map_nhash = -1;
  map_maxarray = map_nhash = map_nbucket = -1;

  max_same = 0;
  sametag = NULL;
+1 −1
Changes for src/atom_map.cpp: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -335,7 +335,7 @@ void Atom::map_delete()
      map_bucket = NULL;
      map_hash = NULL;
    }
    map_nhash = 0;
    map_nhash = map_nbucket = 0;
  }
}