summaryrefslogtreecommitdiffstats
path: root/testpar/t_filter_read.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_filter_read.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_filter_read.c')
-rw-r--r--testpar/t_filter_read.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/testpar/t_filter_read.c b/testpar/t_filter_read.c
index 8895c15..aa0fcb1 100644
--- a/testpar/t_filter_read.c
+++ b/testpar/t_filter_read.c
@@ -80,11 +80,11 @@ filter_read_internal(const char *filename, hid_t dcpl, hsize_t *dset_size)
VRFY(sid >= 0, "H5Screate_simple");
/* Create buffers */
- points = (int *)HDmalloc(size[0] * size[1] * sizeof(int));
- VRFY(points != NULL, "HDmalloc");
+ points = (int *)malloc(size[0] * size[1] * sizeof(int));
+ VRFY(points != NULL, "malloc");
- check = (int *)HDmalloc(hs_size[0] * hs_size[1] * sizeof(int));
- VRFY(check != NULL, "HDmalloc");
+ check = (int *)malloc(hs_size[0] * hs_size[1] * sizeof(int));
+ VRFY(check != NULL, "malloc");
/* Initialize writing buffer with random data */
for (i = 0; i < size[0]; i++)
@@ -146,12 +146,11 @@ filter_read_internal(const char *filename, hid_t dcpl, hsize_t *dset_size)
for (i = 0; i < hs_size[0]; i++) {
for (j = 0; j < hs_size[1]; j++) {
if (points[i * size[1] + (size_t)hs_offset[1] + j] != check[i * hs_size[1] + j]) {
- HDfprintf(stderr, " Read different values than written.\n");
- HDfprintf(stderr, " At index %lu,%lu\n", (unsigned long)(i),
- (unsigned long)(hs_offset[1] + j));
- HDfprintf(stderr, " At original: %d\n",
- (int)points[i * size[1] + (size_t)hs_offset[1] + j]);
- HDfprintf(stderr, " At returned: %d\n", (int)check[i * hs_size[1] + j]);
+ fprintf(stderr, " Read different values than written.\n");
+ fprintf(stderr, " At index %lu,%lu\n", (unsigned long)(i),
+ (unsigned long)(hs_offset[1] + j));
+ fprintf(stderr, " At original: %d\n", (int)points[i * size[1] + (size_t)hs_offset[1] + j]);
+ fprintf(stderr, " At returned: %d\n", (int)check[i * hs_size[1] + j]);
VRFY(FALSE, "");
}
}
@@ -177,8 +176,8 @@ filter_read_internal(const char *filename, hid_t dcpl, hsize_t *dset_size)
hrc = H5Fclose(file);
VRFY(hrc >= 0, "H5Fclose");
- HDfree(points);
- HDfree(check);
+ free(points);
+ free(check);
MPI_Barrier(MPI_COMM_WORLD);
}
@@ -228,7 +227,7 @@ test_filter_read(void)
filename = GetTestParameters();
if (VERBOSE_MED)
- HDprintf("Parallel reading of dataset written with filters %s\n", filename);
+ printf("Parallel reading of dataset written with filters %s\n", filename);
/*----------------------------------------------------------
* STEP 0: Test without filters.