subroutine ESMF_VMGatherVR8(vm, sendData, sendCount, recvData, &
recvCounts, recvOffsets, rootPet, keywordEnforcer, rc)
!
! !ARGUMENTS:
type(ESMF_VM), intent(in) :: vm
real(ESMF_KIND_R8), target, intent(in) :: sendData(:)
integer, intent(in) :: sendCount
real(ESMF_KIND_R8), target, intent(out) :: recvData(:)
integer, intent(in) :: recvCounts(:)
integer, intent(in) :: recvOffsets(:)
integer, intent(in) :: rootPet
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
integer, intent(out), optional :: rc
!
!EOPI
!------------------------------------------------------------------------------
integer :: localrc ! local return code
! initialize return code; assume routine not implemented
localrc = ESMF_RC_NOT_IMPL
if (present(rc)) rc = ESMF_RC_NOT_IMPL
! Check init status of arguments
ESMF_INIT_CHECK_DEEP(ESMF_VMGetInit, vm, rc)
! Call into the C++ interface.
call c_ESMC_VMGatherV(vm, sendData, sendCount, recvData, &
recvCounts, recvOffsets, ESMF_TYPEKIND_R8, rootPet, localrc)
if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
ESMF_CONTEXT, rcToReturn=rc)) return
! return successfully
if (present(rc)) rc = ESMF_SUCCESS
end subroutine ESMF_VMGatherVR8