Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_CommHandle), | intent(in) | :: | commhandle | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_CommHandleValidate(commhandle, rc) ! ! !ARGUMENTS: type(ESMF_CommHandle), intent(in) :: commhandle integer, intent(out), optional :: rc ! ! ! !DESCRIPTION: ! Validates that the {\tt commhandle} is internally consistent. ! The method returns an error code if problems are found. ! ! The arguments are: ! \begin{description} ! \item[commhandle] ! Specified {\tt ESMF\_CommHandle} object. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI !------------------------------------------------------------------------------ integer :: localrc ! local return code ! initialize return code; assume routine not implemented localrc = ESMF_RC_NOT_IMPL if (present(rc)) rc = ESMF_RC_NOT_IMPL ! Check init status of arguments ESMF_INIT_CHECK_DEEP(ESMF_CommHandleGetInit, commhandle, rc) ! Call into the C++ interface. !todo: call c_ESMC_CommHandleValidate(commhandle, localrc) localrc = ESMF_SUCCESS ! remove when todo is done. if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_CommHandleValidate