Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(ESMF_Calendar), | intent(in) | :: | calendar | |||
character(len=*), | intent(in), | optional | :: | options | ||
integer, | intent(out), | optional | :: | rc |
subroutine ESMF_CalendarPrint(calendar, options, rc) ! !ARGUMENTS: type(ESMF_Calendar), intent(in) :: calendar character (len=*), intent(in), optional :: options integer, intent(out), optional :: rc ! ! !DESCRIPTION: ! Prints out an {\tt ESMF\_Calendar}'s properties to {\tt stdio}, ! in support of testing and debugging. The options control the ! type of information and level of detail. \\ ! ! The arguments are: ! \begin{description} ! \item[calendar] ! {\tt ESMF\_Calendar} to be printed out. ! \item[{[options]}] ! Print options. If none specified, prints all calendar property ! values. \\ ! "calkindflag" - print the calendar's type ! (e.g. ESMF\_CALKIND\_GREGORIAN). \\ ! "daysPerMonth" - print the array of number of days for ! each month. \\ ! "daysPerYear" - print the number of days per year ! (integer and fractional parts). \\ ! "monthsPerYear" - print the number of months per year. \\ ! "name" - print the calendar's name. \\ ! "secondsPerDay" - print the number of seconds in a day. \\ ! "secondsPerYear" - print the number of seconds in a year. \\ ! \item[{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} ! !EOP integer :: localrc ! local return code ! Assume failure until success if (present(rc)) rc = ESMF_RC_NOT_IMPL localrc = ESMF_RC_NOT_IMPL ! check input ESMF_INIT_CHECK_DEEP(ESMF_CalendarGetInit,calendar,rc) ! invoke C to C++ entry point call ESMF_UtilIOUnitFlush (ESMF_UtilIOStdout, rc=localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return call c_ESMC_CalendarPrint(calendar, options, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, & ESMF_CONTEXT, rcToReturn=rc)) return ! Return success if (present(rc)) rc = ESMF_SUCCESS end subroutine ESMF_CalendarPrint