diff --git a/src/USER-MISC/pair_meam_spline.cpp b/src/USER-MISC/pair_meam_spline.cpp index 5941a9f600..92a56d12e5 100644 --- a/src/USER-MISC/pair_meam_spline.cpp +++ b/src/USER-MISC/pair_meam_spline.cpp @@ -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]; }