Commit 081910ad authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

do not try to free null communicators

parent f73fd062
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,7 +174,7 @@ FixNEB::~FixNEB()
  memory->destroy(displacements);

  if (NEBLongRange) {
    MPI_Comm_free(&rootworld);
    if (rootworld != MPI_COMM_NULL) MPI_Comm_free(&rootworld);
    memory->destroy(nlenall);
  }
}