From dc867afdd66ceb3ca2ff7a711a5a814cd395a4c1 Mon Sep 17 00:00:00 2001 From: Scot Breitenfeld Date: Tue, 11 Jan 2022 13:44:02 -0600 Subject: fixed spelling (#1353) --- src/H5Dchunk.c | 2 +- src/H5FDint.c | 2 +- src/H5FDmpio.c | 6 +++--- src/H5private.h | 2 +- test/vfd.c | 14 +++++++------- testpar/t_vfd.c | 24 ++++++++++++------------ 6 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/H5Dchunk.c b/src/H5Dchunk.c index 01faae9..74b4d11 100644 --- a/src/H5Dchunk.c +++ b/src/H5Dchunk.c @@ -2734,7 +2734,7 @@ H5D__chunk_read(H5D_io_info_t *io_info, const H5D_type_info_t *type_info, hsize_ HDassert((H5F_addr_defined(udata.chunk_block.offset) && udata.chunk_block.length > 0) || (!H5F_addr_defined(udata.chunk_block.offset) && udata.chunk_block.length == 0)); - /* Check for non-existant chunk & skip it if appropriate */ + /* Check for non-existent chunk & skip it if appropriate */ if (H5F_addr_defined(udata.chunk_block.offset) || UINT_MAX != udata.idx_hint || !skip_missing_chunks) { H5D_io_info_t *chk_io_info; /* Pointer to I/O info object for this chunk */ diff --git a/src/H5FDint.c b/src/H5FDint.c index 641f847..32df75a 100644 --- a/src/H5FDint.c +++ b/src/H5FDint.c @@ -58,7 +58,7 @@ * * This is done by allocating an array of H5FD_vsrt_tmp_t of length * count, loading it with the contents of the addrs[] array and the - * associated indicies, and then sorting it. + * associated indices, and then sorting it. * * This sorted array of H5FD_vsrt_tmp_t is then used to populate sorted * versions of the types[], addrs[], sizes[] and bufs[] vectors. diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index f928828..971832b 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -2020,7 +2020,7 @@ H5FD__mpio_read_vector(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, uint32_t cou /* The read is part of an independent operation. As a result, * we can't use MPI_File_set_view() (since it it a collective operation), * and thus there is no point in setting up an MPI derived type, as - * (to the best of my knowlege) MPI I/O doesn't have support for + * (to the best of my knowledge) MPI I/O doesn't have support for * non-contiguous I/O in independent mode. * * Thus we have to read in each element of the vector in a separate @@ -2055,7 +2055,7 @@ H5FD__mpio_read_vector(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, uint32_t cou size_i = (int)size; /* todo: fix potential for overflow */ - /* Check if we acutally need to do I/O */ + /* Check if we actually need to do I/O */ if (addrs[i] < max_addr) { /* Portably initialize MPI status variable */ HDmemset(&mpi_stat, 0, sizeof(mpi_stat)); @@ -2460,7 +2460,7 @@ H5FD__mpio_write_vector(H5FD_t *_file, hid_t H5_ATTR_UNUSED dxpl_id, uint32_t co /* The write is part of an independent operation. As a result, * we can't use MPI_File_set_view() (since it it a collective operation), * and thus there is no point in setting up an MPI derived type, as - * (to the best of my knowlege) MPI I/O doesn't have support for + * (to the best of my knowledge) MPI I/O doesn't have support for * non-contiguous I/O in independent mode. * * Thus we have to write out each element of the vector in a separate diff --git a/src/H5private.h b/src/H5private.h index 41a7f87..1e0d14e 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -2008,7 +2008,7 @@ extern hbool_t H5_libterm_g; /* Is the library being shutdown? */ #endif /* H5_HAVE_THREADSAFE */ -/* Extern global to determine if we shoudl use selection I/O if available (this +/* Extern global to determine if we should use selection I/O if available (this * variable should be removed once selection I/O performs as well as the * previous scalar I/O implementation */ extern hbool_t H5_use_selection_io_g; diff --git a/test/vfd.c b/test/vfd.c index 0a62642..78efb6f 100644 --- a/test/vfd.c +++ b/test/vfd.c @@ -4041,7 +4041,7 @@ error: * All arrays parameters are presumed to be of length * count. * - * Return: Return TRUE if sucessful, and FALSE if any errors + * Return: Return TRUE if successful, and FALSE if any errors * are encountered. * * Programmer: John Mainzer @@ -4142,7 +4142,7 @@ test_vector_io__setup_v(uint32_t count, H5FD_mem_t types[], haddr_t addrs[], siz * count. Count is presumed to be a power of 2, and at * least 2. * - * Return: Return TRUE if sucessful, and FALSE if any errors + * Return: Return TRUE if successful, and FALSE if any errors * are encountered. * * Programmer: John Mainzer @@ -4207,7 +4207,7 @@ test_vector_io__setup_fixed_size_v(uint32_t count, H5FD_mem_t types[], haddr_t a if (i == fix_point + 1) { - /* set the sentinals that indicate that all remaining + /* set the sentinels that indicate that all remaining * types and sizes are the same as the previous value. */ types[i] = H5FD_MEM_NOLIST; @@ -4273,7 +4273,7 @@ test_vector_io__setup_fixed_size_v(uint32_t count, H5FD_mem_t types[], haddr_t a * All arrays parameters are presumed to be of length * count. * - * Return: Return TRUE if sucessful, and FALSE if any errors + * Return: Return TRUE if successful, and FALSE if any errors * are encountered. * * Programmer: John Mainzer @@ -4328,7 +4328,7 @@ test_vector_io__read_v_indiv(H5FD_t *lf, uint32_t count, H5FD_mem_t types[], had * All arrays parameters are presumed to be of length * count. * - * Return: Return TRUE if sucessful, and FALSE if any errors + * Return: Return TRUE if successful, and FALSE if any errors * are encountered. * * Programmer: John Mainzer @@ -4767,7 +4767,7 @@ test_vector_io(const char *vfd_name) TEST_ERROR; /* Write the contents of a vector as several vector writes, then - * read it back in idividual reads. + * read it back in individual reads. */ if (H5FDwrite_vector(lf, H5P_DEFAULT, 1, &(types_2[0]), &(addrs_2[0]), &(sizes_2[0]), &(write_bufs_2[0])) < 0) @@ -5120,7 +5120,7 @@ test_selection_io(const char *vfd_name) int i2; /* index */ int j2; /* index */ hid_t mem_spaces[2] = {H5I_INVALID_HID, H5I_INVALID_HID}; /* memory dataspaces vector */ - hid_t file_spaces[2] = {H5I_INVALID_HID, H5I_INVALID_HID}; /* file dataspaces vecotr */ + hid_t file_spaces[2] = {H5I_INVALID_HID, H5I_INVALID_HID}; /* file dataspaces vector */ hsize_t dims1[1] = {SEL_IO_DIM0 * SEL_IO_DIM1}; /* 1D dataspace dimensions */ hsize_t dims2[2] = {SEL_IO_DIM0, SEL_IO_DIM1}; /* 1D dataspace dimensions */ hsize_t start[2]; /* start for hyperslab */ diff --git a/testpar/t_vfd.c b/testpar/t_vfd.c index 880cc96..09a7103 100644 --- a/testpar/t_vfd.c +++ b/testpar/t_vfd.c @@ -390,7 +390,7 @@ setup_vfd_test_file(int file_name_id, char *file_name, int mpi_size, H5FD_mpio_x *fapl_id_ptr = fapl_id; *dxpl_id_ptr = dxpl_id; } - else { /* tidy up from failure as posible */ + else { /* tidy up from failure as possible */ if (lf) H5FDclose(lf); @@ -526,7 +526,7 @@ takedown_vfd_test_file(int mpi_rank, char *filename, H5FD_t **lf_ptr, hid_t *fap * Verify that read_fi_buf contains zeros for all * indices less than mpi_rank * INTS_PER_RANK, or * greater than or equal to (mpi_rank + 1) * INTS_PER_RANK. - * For all other indicies, read_fi_buf should equal + * For all other indices, read_fi_buf should equal * increasing_fi_buf. * * 5) Barrier @@ -644,7 +644,7 @@ vector_read_test_1(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer_ * Verify that read_fi_buf contains zeros for all * indices less than mpi_rank * INTS_PER_RANK, or * greater than or equal to (mpi_rank + 1) * INTS_PER_RANK. - * For all other indicies, read_fi_buf should equal + * For all other indices, read_fi_buf should equal * increasing_fi_buf. */ if (pass) { @@ -772,7 +772,7 @@ vector_read_test_1(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer_ * 8) Verify that read_fi_buf contains zeros for all * indices less than mpi_rank * INTS_PER_RANK, or * greater than or equal to (mpi_rank + 1) * INTS_PER_RANK. - * For all other indicies, read_fi_buf should equal + * For all other indices, read_fi_buf should equal * decreasing_fi_buf. * * 9) Barrier @@ -971,7 +971,7 @@ vector_read_test_2(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer_ /* 8) Verify that read_fi_buf contains zeros for all * indices less than mpi_rank * INTS_PER_RANK, or * greater than or equal to (mpi_rank + 1) * INTS_PER_RANK. - * For all other indicies, read_fi_buf should equal + * For all other indices, read_fi_buf should equal * decreasing_fi_buf. */ @@ -2156,7 +2156,7 @@ vector_read_test_5(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer_ * * 2) Write the entire increasing_fi_buf to the file, with * exactly one buffer per vector per rank. Use either - * independant or collective I/O as specified. + * independent or collective I/O as specified. * * 3) Barrier * @@ -2241,7 +2241,7 @@ vector_write_test_1(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer /* 2) Write the entire increasing_fi_buf to the file, with * exactly one buffer per vector per rank. Use either - * independant or collective I/O as specified. + * independent or collective I/O as specified. */ if (pass) { @@ -2346,7 +2346,7 @@ vector_write_test_1(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer * the eoa. * * 2) Write the odd blocks of the increasing_fi_buf to the file, - * with the odd ranks writting the odd blocks, and the even + * with the odd ranks writing the odd blocks, and the even * ranks writing an empty vector. * * Here, a "block" of the increasing_fi_buf is a sequence @@ -2354,7 +2354,7 @@ vector_write_test_1(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer * and with start index a multiple of INTS_PER_RANK. * * 3) Write the even blocks of the negative_fi_buf to the file, - * with the even ranks writting the even blocks, and the odd + * with the even ranks writing the even blocks, and the odd * ranks writing an empty vector. * * 4) Barrier @@ -2439,7 +2439,7 @@ vector_write_test_2(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass); /* 2) Write the odd blocks of the increasing_fi_buf to the file, - * with the odd ranks writting the odd blocks, and the even + * with the odd ranks writing the odd blocks, and the even * ranks writing an empty vector. * * Here, a "block" of the increasing_fi_buf is a sequence @@ -2476,7 +2476,7 @@ vector_write_test_2(int file_name_id, int mpi_rank, int mpi_size, H5FD_mpio_xfer HDfprintf(stdout, "%s: cp = %d, pass = %d.\n", fcn_name, cp++, pass); /* 3) Write the even blocks of the negative_fi_buf to the file, - * with the even ranks writting the even blocks, and the odd + * with the even ranks writing the even blocks, and the odd * ranks writing an empty vector. */ if (pass) { @@ -3952,7 +3952,7 @@ main(int argc, char **argv) if (!pass) { - HDprintf("\nAllocation and initialze of file image buffers failed. Test aborted.\n"); + HDprintf("\nAllocation and initialize of file image buffers failed. Test aborted.\n"); } MPI_Barrier(MPI_COMM_WORLD); -- cgit v0.12