Skip to content

Commit

Permalink
documentation changes
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 4, 2019
1 parent de57f08 commit f3840b4
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
3 changes: 2 additions & 1 deletion src/clib/pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,8 @@ extern "C" {
int PIOc_Init_Intracomm(MPI_Comm comp_comm, int num_iotasks, int stride, int base, int rearr,
int *iosysidp);

/* Shut down an iosystem and free all associated resources. */
/** Shut down an iosystem and free all associated resources. Use
* PIOc_free_iosystem() instead. */
int PIOc_finalize(int iosysid);

/* Shut down an iosystem and free all associated resources. */
Expand Down
18 changes: 18 additions & 0 deletions src/clib/pio_spmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,24 @@ int pio_swapm(void *sendbuf, int *sendcounts, int *sdispls, MPI_Datatype *sendty
return PIO_NOERR;
}

/**
* Clean up internal data structures, and free MPI resources,
* associated with an IOSystem. This is the old name for
* PIOc_free_iosystem(). This function is maintained for backward
* compatibility. Use PIOc_free_iosystem() for new code.
*
* @param iosysid: the io system ID provided by PIOc_Init_Intracomm()
* or PIOc_init_async().
* @returns 0 for success or non-zero for error.
* @ingroup PIO_finalize_c
* @author Jim Edwards, Ed Hartnett
*/
int
PIOc_finalize(int iosysid)
{
return PIOc_free_iosystem(iosysid);
}

/**
* Provides the functionality of MPI_Gatherv with flow control
* options. This function is not currently used, but we hope it will
Expand Down
20 changes: 1 addition & 19 deletions src/clib/pioc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1138,7 +1138,7 @@ PIOc_set_hint(int iosysid, const char *hint, const char *hintval)
* or PIOc_init_async().
* @returns 0 for success or non-zero for error.
* @ingroup PIO_finalize_c
* @author Ed Hartnett
* @author Jim Edwards, Ed Hartnett
*/
int
PIOc_free_iosystem(int iosysid)
Expand Down Expand Up @@ -1243,24 +1243,6 @@ PIOc_free_iosystem(int iosysid)
return PIO_NOERR;
}

/**
* Clean up internal data structures, and free MPI resources,
* associated with an IOSystem. This is the old name for
* PIOc_free_iosystem(). This function is maintained for backward
* compatibility. Use PIOc_free_iosystem() for new code.
*
* @param iosysid: the io system ID provided by PIOc_Init_Intracomm()
* or PIOc_init_async().
* @returns 0 for success or non-zero for error.
* @ingroup PIO_finalize_c
* @author Jim Edwards, Ed Hartnett
*/
int
PIOc_finalize(int iosysid)
{
return PIOc_free_iosystem(iosysid);
}

/**
* Return a logical indicating whether this task is an IO task.
*
Expand Down

0 comments on commit f3840b4

Please sign in to comment.