do not try to free null communicators

This commit is contained in:
Axel Kohlmeyer
2017-05-22 17:15:14 -04:00
parent f73fd0625d
commit 081910adbc

View File

@ -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);
}
}