diff options
author | kmu <kmu@hdfgroup.org> | 2019-11-26 23:23:34 (GMT) |
---|---|---|
committer | kmu <kmu@hdfgroup.org> | 2019-11-26 23:23:34 (GMT) |
commit | 4c8a2f726a2eb47a937430e28994db8be1b87b00 (patch) | |
tree | 7b6849d8aff9ab9c9fe4b8f6ac40113e69454de3 /testpar | |
parent | fc61b7a9f3a38331809ebcb6247482943947cdb8 (diff) | |
download | hdf5-4c8a2f726a2eb47a937430e28994db8be1b87b00.zip hdf5-4c8a2f726a2eb47a937430e28994db8be1b87b00.tar.gz hdf5-4c8a2f726a2eb47a937430e28994db8be1b87b00.tar.bz2 |
Revert "using a different MACRO"
This reverts commit fc61b7a9f3a38331809ebcb6247482943947cdb8.
Diffstat (limited to 'testpar')
-rw-r--r-- | testpar/t_mpi.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testpar/t_mpi.c b/testpar/t_mpi.c index d2090e5..79eda60 100644 --- a/testpar/t_mpi.c +++ b/testpar/t_mpi.c @@ -303,7 +303,7 @@ static int test_mpio_gb_file(char *filename) { mpi_rank, mpi_off, mpi_off); /* set data to some trivial pattern for easy verification */ for (j = 0; j < MB; j++) - H5_CHECKED_ASSIGN(*(buf + j), char, i * mpi_size + mpi_rank, int); + ASSIGN_TO_SMALLER_SIZE(*(buf + j), char, i * mpi_size + mpi_rank, int); if (VERBOSE_MED) HDfprintf(stdout, "proc %d: writing %d bytes at offset %lld\n", @@ -351,7 +351,7 @@ static int test_mpio_gb_file(char *filename) { mrc = MPI_File_read_at(fh, mpi_off, buf, MB, MPI_BYTE, &mpi_stat); INFO((mrc == MPI_SUCCESS), "GB size file read"); - H5_CHECKED_ASSIGN(expected, char, i * mpi_size + (mpi_size - mpi_rank - 1), int); + ASSIGN_TO_SMALLER_SIZE(expected, char, i * mpi_size + (mpi_size - mpi_rank - 1), int); vrfyerrs = 0; for (j = 0; j < MB; j++) { if ((*(buf + j) != expected) @@ -526,7 +526,7 @@ static int test_mpio_1wMr(char *filename, int special_request) { * ==================================================*/ irank = 0; for (i = 0; i < DIMSIZE; i++) - H5_CHECKED_ASSIGN(writedata[i], unsigned char, irank * DIMSIZE + i, int) + ASSIGN_TO_SMALLER_SIZE(writedata[i], unsigned char, irank * DIMSIZE + i, int) mpi_off = irank * DIMSIZE; /* Only one process writes */ @@ -597,7 +597,7 @@ static int test_mpio_1wMr(char *filename, int special_request) { return 1; }; for (i = 0; i < DIMSIZE; i++) { - H5_CHECKED_ASSIGN(expect_val, unsigned char, irank * DIMSIZE + i, int); + ASSIGN_TO_SMALLER_SIZE(expect_val, unsigned char, irank * DIMSIZE + i, int); if (readdata[i] != expect_val) { PRINTID; HDprintf("read data[%d:%d] got %02x, expect %02x\n", irank, i, @@ -697,7 +697,7 @@ static int test_mpio_derived_dtype(char *filename) { MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); retcode = 0; for (i = 0; i < 3; i++) - H5_CHECKED_ASSIGN(buf[i], char, i + 1, int); + ASSIGN_TO_SMALLER_SIZE(buf[i], char, i + 1, int); if ((mpi_err = MPI_File_open(MPI_COMM_WORLD, filename, MPI_MODE_RDWR | MPI_MODE_CREATE, MPI_INFO_NULL, &fh)) |