diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2000-01-26 04:33:38 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2000-01-26 04:33:38 (GMT) |
commit | f490968edc999e8d18fa7174336942b9f010fd05 (patch) | |
tree | f474503ffac97a9c935f700cc89fd40548263aed /testpar/t_file.c | |
parent | f938b6efe369bf9d52ca3a51c5cd1bdb9a2a500b (diff) | |
download | hdf5-f490968edc999e8d18fa7174336942b9f010fd05.zip hdf5-f490968edc999e8d18fa7174336942b9f010fd05.tar.gz hdf5-f490968edc999e8d18fa7174336942b9f010fd05.tar.bz2 |
[svn-r1947] Changed the test files prefix to use the h5_fixname() in test/libh5test.a.
Makefile.in:
Added test/ as one of the -I directories to search for header files.
Needed because <h5test.h> is used.
t_file.c t_mpi.c testphdf5.c testphdf5.h:
Added FILENAME to meet the assumption in h5test.h. (May use
CLEANUP in the future.) Moved the prefix setting to the
h5_fixname().
Diffstat (limited to 'testpar/t_file.c')
-rw-r--r-- | testpar/t_file.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testpar/t_file.c b/testpar/t_file.c index 724edb4..d2b3d86 100644 --- a/testpar/t_file.c +++ b/testpar/t_file.c @@ -18,7 +18,7 @@ * sooner or later due to barrier mixed up. */ void -test_split_comm_access(char *filename[]) +test_split_comm_access(char *filename) { int mpi_size, mpi_rank; MPI_Comm comm; @@ -30,8 +30,8 @@ test_split_comm_access(char *filename[]) herr_t ret; /* generic return value */ if (verbose) - printf("Split Communicator access test on file %s %s\n", - filename[0], filename[1]); + printf("Split Communicator access test on file %s\n", + filename); /* set up MPI parameters */ MPI_Comm_size(MPI_COMM_WORLD,&mpi_size); @@ -60,7 +60,7 @@ test_split_comm_access(char *filename[]) VRFY((ret >= 0), ""); /* create the file collectively */ - fid=H5Fcreate(filename[color],H5F_ACC_TRUNC,H5P_DEFAULT,acc_tpl); + fid=H5Fcreate(filename,H5F_ACC_TRUNC,H5P_DEFAULT,acc_tpl); VRFY((fid >= 0), "H5Fcreate succeeded"); /* Release file-access template */ @@ -73,7 +73,7 @@ test_split_comm_access(char *filename[]) /* detele the test file */ if (sub_mpi_rank == 0){ - mrc = MPI_File_delete(filename[color], info); + mrc = MPI_File_delete(filename, info); VRFY((mrc==MPI_SUCCESS), ""); } } |