Commit 1f1447c3 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

need to update exclusions with the new atom IDs in case of molecular systems

parent 1ed25d19
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
#include "atom_vec.h"
#include "domain.h"
#include "comm.h"
#include "special.h"
#include "memory.h"
#include "error.h"

@@ -232,6 +233,13 @@ void ResetIDs::command(int narg, char **arg)
  atom->map_init();
  atom->map_set();

  // need to update exclusions with new atom IDs

  if (atom->molecular == 1) {
    Special special(lmp);
    special.build();
  }

  // delete temporary atom map

  if (mapflag) {