subroutine ESMF_VMScatterVI4(vm, sendData, sendCounts, sendOffsets, &
recvData, recvCount, rootPet, keywordEnforcer, rc)
!
! !ARGUMENTS:
type(ESMF_VM), intent(in) :: vm
integer(ESMF_KIND_I4), target, intent(in) :: sendData(:)
integer, intent(in) :: sendCounts(:)
integer, intent(in) :: sendOffsets(:)
integer(ESMF_KIND_I4), target, intent(out) :: recvData(:)
integer, intent(in) :: recvCount
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_VMScatterV(vm, sendData, sendCounts, sendOffsets, &
recvData, recvCount, ESMF_TYPEKIND_I4, 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_VMScatterVI4