Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_IO) | :: | io | ||||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_IODestroy(io, rc) ! ! !ARGUMENTS: type(ESMF_IO) :: io integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Releases resources associated with this {\tt ESMF\_IO} object. ! ! The arguments are: ! \begin{description} ! \item[io] ! Destroy contents of this {\tt ESMF\_IO} object. ! \item[[rc]] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI ! !REQUIREMENTS: ! IOx.y, IOx.y.z TODO ! integer :: localrc ! local return code ! ! ! Assume failure until success if (present(rc)) rc = ESMF_RC_NOT_IMPL localrc = ESMF_RC_NOT_IMPL ! ! ! check inputs ! ESMF_INIT_CHECK_DEEP(ESMF_IOGetInit,io,rc) TODO ! ! invoke C to C++ entry point call c_ESMC_IO_XMLDestroy(io, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) then ! ! Don't bail out until Delete write(*,*)" c_ESMC_IODestroy fails" endif ! ! call ESMF_IOSetInitDeleted(io) ! ! ! Return success if (present(rc)) rc = localrc end subroutine ESMF_IODestroy