From c76d27373ecd7be40cbc1ccb163178681dfa49bc Mon Sep 17 00:00:00 2001 From: DallasTrinkle Date: Mon, 1 May 2017 20:33:07 -0500 Subject: [PATCH] Another fix for seg fault in parallel allocation. --- src/USER-MISC/pair_meam_spline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }