summaryrefslogtreecommitdiffstats
path: root/testpar/t_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'testpar/t_file.c')
-rw-r--r--testpar/t_file.c10
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), "");
}
}