ESMF_InfoDescribeGetCurrentInfo Function

public function ESMF_InfoDescribeGetCurrentInfo(self, rc) result(info)

Type Bound

ESMF_InfoDescribe

Arguments

Type IntentOptional Attributes Name
class(ESMF_InfoDescribe), intent(in) :: self
integer, intent(inout), optional :: rc

Return Value type(ESMF_Info)


Source Code

function ESMF_InfoDescribeGetCurrentInfo(self, rc) result(info)
  use iso_c_binding, only : C_NULL_PTR
  class(ESMF_InfoDescribe), intent(in) :: self
  integer, intent(inout), optional :: rc
  type(ESMF_Base) :: base
  type(ESMF_Info) :: info
  integer :: localrc
  localrc = ESMF_FAILURE
  if (present(rc)) rc = ESMF_RC_NOT_IMPL
  info%ptr = C_NULL_PTR
  base = self%GetCurrentBase(rc=localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
  call ESMF_InfoGetFromBase(base, info, rc=localrc)
  if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
  info%is_view = .true.
  if (present(rc)) rc = ESMF_SUCCESS
end function ESMF_InfoDescribeGetCurrentInfo