summaryrefslogtreecommitdiffstats
path: root/src/H5Fmpi.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2023-06-28 14:31:56 (GMT)
committerGitHub <noreply@github.com>2023-06-28 14:31:56 (GMT)
commit7a44581a84778a1346a2fd5b6cca7d9db905a321 (patch)
tree44ea9c2d1b471eb227698abe8499c34cfa6d47d2 /src/H5Fmpi.c
parent622fcbd13881fbc58bbeaed3062583b759f5e864 (diff)
downloadhdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.zip
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.gz
hdf5-7a44581a84778a1346a2fd5b6cca7d9db905a321.tar.bz2
Rename HDassert() to assert() (#3191)
* Change HDassert to assert * Fix bin/make_err
Diffstat (limited to 'src/H5Fmpi.c')
-rw-r--r--src/H5Fmpi.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/H5Fmpi.c b/src/H5Fmpi.c
index c5368d8..6da127b 100644
--- a/src/H5Fmpi.c
+++ b/src/H5Fmpi.c
@@ -89,7 +89,7 @@ H5F_mpi_get_rank(const H5F_t *f)
FUNC_ENTER_NOAPI((-1))
- HDassert(f && f->shared);
+ assert(f && f->shared);
/* Dispatch to driver */
if ((ret_value = H5FD_mpi_get_rank(f->shared->lf)) < 0)
@@ -120,7 +120,7 @@ H5F_mpi_get_comm(const H5F_t *f)
FUNC_ENTER_NOAPI(MPI_COMM_NULL)
- HDassert(f && f->shared);
+ assert(f && f->shared);
/* Dispatch to driver */
if ((ret_value = H5FD_mpi_get_comm(f->shared->lf)) == MPI_COMM_NULL)
@@ -151,7 +151,7 @@ H5F_shared_mpi_get_size(const H5F_shared_t *f_sh)
FUNC_ENTER_NOAPI((-1))
- HDassert(f_sh);
+ assert(f_sh);
/* Dispatch to driver */
if ((ret_value = H5FD_mpi_get_size(f_sh->lf)) < 0)
@@ -182,7 +182,7 @@ H5F_mpi_get_size(const H5F_t *f)
FUNC_ENTER_NOAPI((-1))
- HDassert(f && f->shared);
+ assert(f && f->shared);
/* Dispatch to driver */
if ((ret_value = H5FD_mpi_get_size(f->shared->lf)) < 0)
@@ -209,7 +209,7 @@ H5F__set_mpi_atomicity(H5F_t *file, hbool_t flag)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(file);
+ assert(file);
/* Check VFD */
if (!H5F_HAS_FEATURE(file, H5FD_FEAT_HAS_MPI))
@@ -282,8 +282,8 @@ H5F__get_mpi_atomicity(const H5F_t *file, hbool_t *flag)
FUNC_ENTER_PACKAGE
/* Check args */
- HDassert(file);
- HDassert(flag);
+ assert(file);
+ assert(flag);
/* Check VFD */
if (!H5F_HAS_FEATURE(file, H5FD_FEAT_HAS_MPI))
@@ -363,7 +363,7 @@ H5F_mpi_retrieve_comm(hid_t loc_id, hid_t acspl_id, MPI_Comm *mpi_comm)
FUNC_ENTER_NOAPI(FAIL)
/* Sanity check */
- HDassert(mpi_comm);
+ assert(mpi_comm);
/* Set value to return to invalid MPI comm */
*mpi_comm = MPI_COMM_NULL;
@@ -378,7 +378,7 @@ H5F_mpi_retrieve_comm(hid_t loc_id, hid_t acspl_id, MPI_Comm *mpi_comm)
if (H5G_loc(loc_id, &loc) < 0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a location")
f = loc.oloc->file;
- HDassert(f);
+ assert(f);
/* Check if MPIO driver is used */
if (H5F_HAS_FEATURE(f, H5FD_FEAT_HAS_MPI)) {
@@ -436,7 +436,7 @@ H5F_get_coll_metadata_reads(const H5F_t *file)
FUNC_ENTER_NOAPI_NOERR
- HDassert(file && file->shared);
+ assert(file && file->shared);
/* Retrieve the file-global flag */
file_flag = H5F_COLL_MD_READ(file);
@@ -514,9 +514,9 @@ H5F_set_coll_metadata_reads(H5F_t *file, H5P_coll_md_read_flag_t *file_flag, hbo
FUNC_ENTER_NOAPI_NOERR
- HDassert(file && file->shared);
- HDassert(file_flag);
- HDassert(context_flag);
+ assert(file && file->shared);
+ assert(file_flag);
+ assert(context_flag);
/* Save old state */
prev_file_flag = H5F_COLL_MD_READ(file);
@@ -565,13 +565,13 @@ H5F_mpi_get_file_block_type(hbool_t commit, MPI_Datatype *new_type, hbool_t *new
FUNC_ENTER_NOAPI(FAIL)
- HDassert(new_type);
- HDassert(new_type_derived);
+ assert(new_type);
+ assert(new_type_derived);
*new_type_derived = FALSE;
field_count = 2;
- HDassert(field_count == sizeof(types) / sizeof(MPI_Datatype));
+ assert(field_count == sizeof(types) / sizeof(MPI_Datatype));
block_lengths[0] = 1;
block_lengths[1] = 1;