Skip to content

Commit

Permalink
further progress on netcdf integration
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jul 3, 2019
1 parent 168edc6 commit 100af62
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ fi
# These are needed by ncdispatch.h. Only build with HDF5 parallel
# versions of netCDF. */
if test "x$enable_netcdf_integration" = xyes; then
AC_SUBST([HDF5_PARALLEL], [1])
AC_DEFINE([HDF5_PARALLEL],[1],[Does HDF5 library provide parallel access])
fi

AM_CONDITIONAL(BUILD_NCINT, [test "x$enable_netcdf_integration" = xyes])
Expand Down
11 changes: 11 additions & 0 deletions src/ncint/ncint_pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,14 @@ nc_init_intracomm(MPI_Comm comp_comm, int num_iotasks, int stride, int base, int
{
return PIOc_Init_Intracomm(comp_comm, num_iotasks, stride, base, rearr, iosysidp);
}

/**
* Same as PIOc_free_iosystem().
*
* @author Ed Hartnett
*/
int
nc_free_iosystem(int iosysid)
{
return PIOc_free_iosystem(iosysid);
}
3 changes: 3 additions & 0 deletions tests/ncint/tst_pio_udf.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ main(int argc, char **argv)
if (nc_inq_format(ncid, NULL) != TEST_VAL_42) ERR;
if (nc_inq_format_extended(ncid, NULL, NULL) != TEST_VAL_42) ERR;
if (nc_abort(ncid) != TEST_VAL_42) ERR;

/* Close the iosystem. */
if (nc_free_iosystem(iosysid)) ERR;
}
SUMMARIZE_ERR;

Expand Down

0 comments on commit 100af62

Please sign in to comment.