ESMF_CalendarKindAndCalEQ Function

private impure elemental function ESMF_CalendarKindAndCalEQ(calkindflag, calendar)

Arguments

Type IntentOptional Attributes Name
type(ESMF_CalKind_Flag), intent(in) :: calkindflag
type(ESMF_Calendar), intent(in) :: calendar

Return Value logical


Source Code

      impure elemental function ESMF_CalendarKindAndCalEQ(calkindflag, calendar)
! 
! !RETURN VALUE:
      logical :: ESMF_CalendarKindAndCalEQ

! !ARGUMENTS:
      type(ESMF_CalKind_Flag), intent(in) :: calkindflag
      type(ESMF_Calendar),     intent(in) :: calendar

! !DESCRIPTION:
!     This method overloads the (==) operator for the {\tt ESMF\_Calendar}
!     class.  See "interface operator(==)" above for complete description.
!             
!EOPI

      integer :: localrc

      ! Initialize output value in case of error
      ESMF_CalendarKindAndCalEQ = .false.

      ! check input
      ESMF_INIT_CHECK_DEEP(ESMF_CalendarGetInit,calendar,localrc)

      ! invoke C to C++ entry point
      call c_ESMC_CalendarKindAndCalEQ(calkindflag, calendar, &
                                       ESMF_CalendarKindAndCalEQ)

      end function ESMF_CalendarKindAndCalEQ