diff --git a/src/main.cpp b/src/main.cpp index 320404b8dd..9fb084aaea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -53,6 +53,7 @@ int main(int argc, char **argv) } catch(LAMMPSAbortException &ae) { MPI_Abort(ae.universe, 1); } catch(LAMMPSException &e) { + MPI_Barrier(MPI_COMM_WORLD); MPI_Finalize(); exit(1); }