summaryrefslogtreecommitdiffstats
path: root/testpar/t_prestart.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-07-27 20:43:30 (GMT)
committerGitHub <noreply@github.com>2023-07-27 20:43:30 (GMT)
commit1e91d96fa02466ffe451319bdac1005f84dc7993 (patch)
tree4de04ef502c313dfd766497b20235188761146c0 /testpar/t_prestart.c
parent95e5349089b95dfb95f0f8ce2d6db1bc04ba6c82 (diff)
downloadhdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.zip
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.gz
hdf5-1e91d96fa02466ffe451319bdac1005f84dc7993.tar.bz2
Brings over most of the HD prefix removal (#3293)
Diffstat (limited to 'testpar/t_prestart.c')
-rw-r--r--testpar/t_prestart.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/testpar/t_prestart.c b/testpar/t_prestart.c
index bfa72b6..514906a 100644
--- a/testpar/t_prestart.c
+++ b/testpar/t_prestart.c
@@ -74,8 +74,8 @@ main(int argc, char **argv)
VRFY(dims[1] == (hsize_t)(COL_FACTOR * mpi_size), "Wrong dataset dimensions");
/* allocate memory for data buffer */
- data_array = (DATATYPE *)HDmalloc(dims[0] * dims[1] * sizeof(DATATYPE));
- VRFY((data_array != NULL), "data_array HDmalloc succeeded");
+ data_array = (DATATYPE *)malloc(dims[0] * dims[1] * sizeof(DATATYPE));
+ VRFY((data_array != NULL), "data_array malloc succeeded");
/* Each process takes a slabs of rows. */
block[0] = dims[0] / (hsize_t)mpi_size;
@@ -103,9 +103,9 @@ main(int argc, char **argv)
for (i = 0; i < block[0]; i++) {
for (j = 0; j < block[1]; j++) {
if (*dataptr != mpi_rank + 1) {
- HDprintf("Dataset Verify failed at [%lu][%lu](row %lu, col %lu): expect %d, got %d\n",
- (unsigned long)i, (unsigned long)j, (unsigned long)((hsize_t)i + start[0]),
- (unsigned long)((hsize_t)j + start[1]), mpi_rank + 1, *(dataptr));
+ printf("Dataset Verify failed at [%lu][%lu](row %lu, col %lu): expect %d, got %d\n",
+ (unsigned long)i, (unsigned long)j, (unsigned long)((hsize_t)i + start[0]),
+ (unsigned long)((hsize_t)j + start[1]), mpi_rank + 1, *(dataptr));
nerrors++;
}
dataptr++;
@@ -116,7 +116,7 @@ main(int argc, char **argv)
/* release data buffers */
if (data_array)
- HDfree(data_array);
+ free(data_array);
nerrors += GetTestNumErrs();