Another fix for seg fault in parallel allocation.

This commit is contained in:
DallasTrinkle
2017-05-01 20:33:07 -05:00
parent fb08dc09f3
commit c76d27373e

View File

@ -609,7 +609,7 @@ void PairMEAMSpline::read_file(const char* filename)
MPI_Bcast(&nelements, 1, MPI_INT, 0, world);
MPI_Bcast(&nmultichoose2, 1, MPI_INT, 0, world);
// allocate!!
if (!allocated) {
if (comm->me != 0) {
allocate();
elements = new char*[nelements];
}