ESMF_CalendarSetDefaultCal Subroutine

private subroutine ESMF_CalendarSetDefaultCal(calendar, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_Calendar), intent(in) :: calendar
integer, intent(out), optional :: rc

Calls

proc~~esmf_calendarsetdefaultcal~~CallsGraph proc~esmf_calendarsetdefaultcal ESMF_CalendarSetDefaultCal c_esmc_calendarsetdefaultcal c_esmc_calendarsetdefaultcal proc~esmf_calendarsetdefaultcal->c_esmc_calendarsetdefaultcal proc~esmf_calendargetinit ESMF_CalendarGetInit proc~esmf_calendarsetdefaultcal->proc~esmf_calendargetinit proc~esmf_imerr ESMF_IMErr proc~esmf_calendarsetdefaultcal->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_calendarsetdefaultcal->proc~esmf_logfounderror proc~esmf_imerr->proc~esmf_logfounderror proc~esmf_initcheckdeep ESMF_InitCheckDeep proc~esmf_imerr->proc~esmf_initcheckdeep esmf_breakpoint esmf_breakpoint proc~esmf_logfounderror->esmf_breakpoint proc~esmf_logrc2msg ESMF_LogRc2Msg proc~esmf_logfounderror->proc~esmf_logrc2msg proc~esmf_logwrite ESMF_LogWrite proc~esmf_logfounderror->proc~esmf_logwrite c_esmc_loggeterrormsg c_esmc_loggeterrormsg proc~esmf_logrc2msg->c_esmc_loggeterrormsg c_esmc_vmwtime c_esmc_vmwtime proc~esmf_logwrite->c_esmc_vmwtime proc~esmf_logclose ESMF_LogClose proc~esmf_logwrite->proc~esmf_logclose proc~esmf_logflush ESMF_LogFlush proc~esmf_logwrite->proc~esmf_logflush proc~esmf_logopenfile ESMF_LogOpenFile proc~esmf_logwrite->proc~esmf_logopenfile proc~esmf_utiliounitflush ESMF_UtilIOUnitFlush proc~esmf_logwrite->proc~esmf_utiliounitflush proc~esmf_utilstring2array ESMF_UtilString2Array proc~esmf_logwrite->proc~esmf_utilstring2array proc~esmf_logclose->proc~esmf_logflush proc~esmf_logflush->proc~esmf_utiliounitflush proc~esmf_utilarray2string ESMF_UtilArray2String proc~esmf_logflush->proc~esmf_utilarray2string proc~esmf_logopenfile->proc~esmf_utiliounitflush proc~esmf_utiliounitget ESMF_UtilIOUnitGet proc~esmf_logopenfile->proc~esmf_utiliounitget

Called by

proc~~esmf_calendarsetdefaultcal~~CalledByGraph proc~esmf_calendarsetdefaultcal ESMF_CalendarSetDefaultCal interface~esmf_calendarsetdefault ESMF_CalendarSetDefault interface~esmf_calendarsetdefault->proc~esmf_calendarsetdefaultcal program~esmf_clocktest ESMF_ClockTest program~esmf_clocktest->interface~esmf_calendarsetdefault program~esmf_logerrutest~2 ESMF_LogErrUTest program~esmf_logerrutest~2->interface~esmf_calendarsetdefault program~esmf_nuopc_utest ESMF_NUOPC_UTest program~esmf_nuopc_utest->interface~esmf_calendarsetdefault

Source Code

      subroutine ESMF_CalendarSetDefaultCal(calendar, rc)

! !ARGUMENTS:
      type(ESMF_Calendar),     intent(in)            :: calendar
      integer,                 intent(out), optional :: rc

!
! !DESCRIPTION:
!     Sets the default {\tt calendar} to the one given.  Subsequent Time
!     Manager operations requiring a calendar where one isn't specified will
!     use this calendar.
!
!     The arguments are:
!     \begin{description}
!     \item[calendar]
!          The object instance to be the default.
!     \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 c_ESMC_CalendarSetDefaultCal(calendar, localrc)
      if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return

      ! Return success
      if (present(rc)) rc = ESMF_SUCCESS 
      end subroutine ESMF_CalendarSetDefaultCal