Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_SciComp), | intent(in) | :: | scicomp | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_SciCompPrint(scicomp, keywordEnforcer, rc) ! ! !ARGUMENTS: type(ESMF_SciComp), intent(in) :: scicomp type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Prints information about an {\tt ESMF\_SciComp} to {\tt stdout}. \\ ! ! The arguments are: ! \begin{description} ! \item[scicomp] ! {\tt ESMF\_SciComp} to print. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOP !------------------------------------------------------------------------------ integer :: localrc ! local return code ! initialize return code; assume routine not implemented if (present(rc)) rc = ESMF_RC_NOT_IMPL localrc = ESMF_RC_NOT_IMPL ESMF_INIT_CHECK_DEEP(ESMF_SciCompGetInit,scicomp,rc) write (ESMF_UtilIOStdout,*) "Science Component:" ! call Comp method call ESMF_CompPrint(scicomp%compp, rc=localrc) if (ESMF_LogFoundError(localrc, & ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! return successfully if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_SciCompPrint