Index: /issm/trunk/src/c/io/pfopen.cpp
===================================================================
--- /issm/trunk/src/c/io/pfopen.cpp	(revision 3141)
+++ /issm/trunk/src/c/io/pfopen.cpp	(revision 3142)
@@ -18,8 +18,11 @@
 
 	FILE* fid=NULL;
+	extern int my_rank;
 	
 	/*Open handle to data on disk: */
-	fid=fopen(filename,format);
-	if(fid==NULL) throw ErrorException(__FUNCT__,exprintf("%s%s%s","could not open file ",filename," for binary reading or writing")); 
+	if(my_rank==0){
+		fid=fopen(filename,format);
+		if(fid==NULL) throw ErrorException(__FUNCT__,exprintf("%s%s%s","could not open file ",filename," for binary reading or writing")); 
+	}
 
 	return fid;
