ESMF_VMGatherVR4 Subroutine

private subroutine ESMF_VMGatherVR4(vm, sendData, sendCount, recvData, recvCounts, recvOffsets, rootPet, keywordEnforcer, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_VM), intent(in) :: vm
real(kind=ESMF_KIND_R4), intent(in), target :: sendData(:)
integer, intent(in) :: sendCount
real(kind=ESMF_KIND_R4), intent(out), target :: recvData(:)
integer, intent(in) :: recvCounts(:)
integer, intent(in) :: recvOffsets(:)
integer, intent(in) :: rootPet
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
integer, intent(out), optional :: rc

Calls

proc~~esmf_vmgathervr4~~CallsGraph proc~esmf_vmgathervr4 ESMF_VMGatherVR4 interface~c_esmc_vmgatherv c_ESMC_VMGatherV proc~esmf_vmgathervr4->interface~c_esmc_vmgatherv proc~esmf_imerr ESMF_IMErr proc~esmf_vmgathervr4->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_vmgathervr4->proc~esmf_logfounderror proc~esmf_vmgetinit ESMF_VMGetInit proc~esmf_vmgathervr4->proc~esmf_vmgetinit proc~esmf_imerr->proc~esmf_logfounderror proc~esmf_initcheckdeep ESMF_InitCheckDeep proc~esmf_imerr->proc~esmf_initcheckdeep esmf_breakpoint esmf_breakpoint proc~esmf_logfounderror->esmf_breakpoint proc~esmf_logrc2msg ESMF_LogRc2Msg proc~esmf_logfounderror->proc~esmf_logrc2msg proc~esmf_logwrite ESMF_LogWrite proc~esmf_logfounderror->proc~esmf_logwrite c_esmc_loggeterrormsg c_esmc_loggeterrormsg proc~esmf_logrc2msg->c_esmc_loggeterrormsg c_esmc_vmwtime c_esmc_vmwtime proc~esmf_logwrite->c_esmc_vmwtime proc~esmf_logclose ESMF_LogClose proc~esmf_logwrite->proc~esmf_logclose proc~esmf_logflush ESMF_LogFlush proc~esmf_logwrite->proc~esmf_logflush proc~esmf_logopenfile ESMF_LogOpenFile proc~esmf_logwrite->proc~esmf_logopenfile proc~esmf_utiliounitflush ESMF_UtilIOUnitFlush proc~esmf_logwrite->proc~esmf_utiliounitflush proc~esmf_utilstring2array ESMF_UtilString2Array proc~esmf_logwrite->proc~esmf_utilstring2array proc~esmf_logclose->proc~esmf_logflush proc~esmf_logflush->proc~esmf_utiliounitflush proc~esmf_utilarray2string ESMF_UtilArray2String proc~esmf_logflush->proc~esmf_utilarray2string proc~esmf_logopenfile->proc~esmf_utiliounitflush proc~esmf_utiliounitget ESMF_UtilIOUnitGet proc~esmf_logopenfile->proc~esmf_utiliounitget

Called by

proc~~esmf_vmgathervr4~~CalledByGraph proc~esmf_vmgathervr4 ESMF_VMGatherVR4 interface~esmf_vmgatherv ESMF_VMGatherV interface~esmf_vmgatherv->proc~esmf_vmgathervr4 proc~computeareamesh computeAreaMesh proc~computeareamesh->interface~esmf_vmgatherv proc~computefracgrid computeFracGrid proc~computefracgrid->interface~esmf_vmgatherv proc~computefraclocstream computeFracLocStream proc~computefraclocstream->interface~esmf_vmgatherv proc~computefracmesh computeFracMesh proc~computefracmesh->interface~esmf_vmgatherv proc~gatherfracfieldmesh gatherFracFieldMesh proc~gatherfracfieldmesh->interface~esmf_vmgatherv program~esmf_vmgatherutest ESMF_VMGatherUTest program~esmf_vmgatherutest->interface~esmf_vmgatherv proc~f_esmf_regridstorefile f_esmf_regridstorefile proc~f_esmf_regridstorefile->proc~computeareamesh

Source Code

  subroutine ESMF_VMGatherVR4(vm, sendData, sendCount, recvData, &
    recvCounts, recvOffsets, rootPet, keywordEnforcer, rc)
!
! !ARGUMENTS:
    type(ESMF_VM),              intent(in)            :: vm
    real(ESMF_KIND_R4), target, intent(in)            :: sendData(:)
    integer,                    intent(in)            :: sendCount
    real(ESMF_KIND_R4), 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_R4, 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_VMGatherVR4