summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2006-11-22 04:21:02 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2006-11-22 04:21:02 (GMT)
commit1c53181756cf9640e0ed085b3c50a9a3a9d985a4 (patch)
tree793bee8255d493639e04270b273aeffce58c905d
parent9f45ec7671c4d22aeb297c147b1f4e867668425e (diff)
downloadhdf5-1c53181756cf9640e0ed085b3c50a9a3a9d985a4.zip
hdf5-1c53181756cf9640e0ed085b3c50a9a3a9d985a4.tar.gz
hdf5-1c53181756cf9640e0ed085b3c50a9a3a9d985a4.tar.bz2
[svn-r12967] Cleanup.
The h5_mpi_get_file_size() is no longer used. The unused code caused some compiling warning messages. Removed the whole routine. Tested in heping pp mode.
-rw-r--r--testpar/testphdf5.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index e35bfed..6145825 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -308,49 +308,6 @@ create_faccess_plist(MPI_Comm comm, MPI_Info info, int l_facc_type,
return (ret_pl);
}
-/*
- * Check the size of a file using MPI routines
- * Temporary hack: SGI Altix MPI_File_get_size() does not work correctly
- * for size >= 2GB. Use stat for now.
- * If stat() does not work for other systems, need to make it conditional
- * compile for Altix only.
- */
-MPI_Offset
-h5_mpi_get_file_size(const char *filename, MPI_Comm comm, MPI_Info info)
-{
-#if 0
- MPI_File fh; /* MPI file handle */
- MPI_Offset size=0; /* File size to return */
-
- if (MPI_SUCCESS != MPI_File_open(comm, (char*)filename, MPI_MODE_RDONLY, info, &fh))
- goto done;
-
- if (MPI_SUCCESS != (MPI_File_get_size(fh, &size)))
- goto done;
-
- if (MPI_SUCCESS != MPI_File_close(&fh))
- size=0;
-#else
- MPI_Offset size=0; /* File size to return */
-#ifdef H5_HAVE_STAT64
- /* use stat64 if available */
- struct stat64 mystat;
-#else
- struct stat mystat;
-#endif
-
-#ifdef H5_HAVE_STAT64
- stat(filename, &mystat);
-#else
- stat(filename, &mystat);
-#endif
-
- size = mystat.st_size;
-#endif
-
-done:
- return(size);
-}
int main(int argc, char **argv)
{