Unverified Commit 13700905 authored by Tyson Whitehead's avatar Tyson Whitehead
Browse files

Move comm destruction to after modify to leave available for fixes

Needed in some cases to cleanup asynchronous inter-step transfers.
parent 6f1055a9
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -854,9 +854,6 @@ void LAMMPS::destroy()
  delete neighbor;
  neighbor = NULL;

  delete comm;
  comm = NULL;

  delete force;
  force = NULL;

@@ -870,6 +867,10 @@ void LAMMPS::destroy()
                          //   since they delete fixes
  modify = NULL;

  delete comm;            // comm must come after modify
                          //   since fix destructors may access comm
  comm = NULL;

  delete domain;          // domain must come after modify
                          //   since fix destructors access domain
  domain = NULL;