ESMF_InfoDescribeDestroy Subroutine

public subroutine ESMF_InfoDescribeDestroy(self, rc)

Type Bound

ESMF_InfoDescribe

Arguments

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

Source Code

subroutine ESMF_InfoDescribeDestroy(self, rc)
  class(ESMF_InfoDescribe), intent(inout) :: self
  integer, intent(inout), optional :: rc
  integer :: localrc

  localrc = ESMF_FAILURE
  if (present(rc)) rc = ESMF_RC_NOT_IMPL
  if (self%is_initialized) then
    if (self%createInfo) then
      call ESMF_InfoDestroy(self%info, rc=localrc)
      if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return
    endif
  endif

  nullify(self%searchCriteria)
  nullify(self%vmIdMap)

  if (present(rc)) rc = ESMF_SUCCESS
end subroutine ESMF_InfoDescribeDestroy