Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
type(ESMF_CalKind_Flag), | intent(in), | optional | :: | calkindflag | ||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_CalendarInitialize(keywordEnforcer, calkindflag, rc) ! !ARGUMENTS: type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below type(ESMF_CalKind_Flag), intent(in), optional :: calkindflag integer, intent(out), optional :: rc ! !DESCRIPTION: ! Initializes the default {\tt calendar} to the given type. Subsequent ! Time Manager operations requiring a calendar where one isn't specified ! will use the default internal calendar of this type. ! ! The arguments are: ! \begin{description} ! \item[{[calkindflag]}] ! The calendar kind to initialize the default to. If not specified, ! the default is set to {\tt ESMF\_CALKIND\_NOCALENDAR}. ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOPI integer :: localrc ! local return code ! Assume failure until success if (present(rc)) rc = ESMF_RC_NOT_IMPL localrc = ESMF_RC_NOT_IMPL ! invoke C to C++ entry point call c_ESMC_CalendarInitialize(calkindflag, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! Return success if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_CalendarInitialize