synchronize exception based and non-exception based code paths

This commit is contained in:
Axel Kohlmeyer
2020-07-08 10:18:01 -04:00
parent e6a8f3c8c0
commit ed452c3624

View File

@ -53,6 +53,7 @@ int main(int argc, char **argv)
} catch(LAMMPSAbortException &ae) { } catch(LAMMPSAbortException &ae) {
MPI_Abort(ae.universe, 1); MPI_Abort(ae.universe, 1);
} catch(LAMMPSException &e) { } catch(LAMMPSException &e) {
MPI_Barrier(MPI_COMM_WORLD);
MPI_Finalize(); MPI_Finalize();
exit(1); exit(1);
} }