diff --git a/src/force.cpp b/src/force.cpp index ac6f4553213a38787285f7e743865ffc5739c6ab..f539c6de8b5974bb6c017877e6247f8341b14eaf 100644 --- a/src/force.cpp +++ b/src/force.cpp @@ -905,7 +905,7 @@ FILE *Force::open_potential(const char *name) fp = fopen(name,"r"); if (fp) { - potential_date(fp,name); + if (comm->me == 0) potential_date(fp,name); rewind(fp); return fp; } @@ -934,7 +934,7 @@ FILE *Force::open_potential(const char *name) fp = fopen(newpath,"r"); if (fp) { - potential_date(fp,name); + if (comm->me == 0) potential_date(fp,name); rewind(fp); }