[mpich2-commits] r7935 - mpich2/trunk/src/mpi/romio/mpi-io/glue/default

robl at mcs.anl.gov robl at mcs.anl.gov
Fri Feb 11 10:07:42 CST 2011


Author: robl
Date: 2011-02-11 10:07:41 -0600 (Fri, 11 Feb 2011)
New Revision: 7935

Modified:
   mpich2/trunk/src/mpi/romio/mpi-io/glue/default/mpio_file.c
Log:
instead of aborting in the "bogus handle" case, just return MPI_FILE_NULL


Modified: mpich2/trunk/src/mpi/romio/mpi-io/glue/default/mpio_file.c
===================================================================
--- mpich2/trunk/src/mpi/romio/mpi-io/glue/default/mpio_file.c	2011-02-11 13:32:01 UTC (rev 7934)
+++ mpich2/trunk/src/mpi/romio/mpi-io/glue/default/mpio_file.c	2011-02-11 16:07:41 UTC (rev 7935)
@@ -52,7 +52,8 @@
     if (!fh) return MPI_FILE_NULL;
     if ((fh < 0) || (fh > ADIOI_Ftable_ptr)) {
 	FPRINTF(stderr, "MPI_File_f2c: Invalid file handle\n");
-	MPI_Abort(MPI_COMM_WORLD, 1);
+	/* there is no way to return an error from MPI_File_f2c */
+	return MPI_FILE_NULL;
     }
     return ADIOI_Ftable[fh];
 #endif



More information about the mpich2-commits mailing list