ESMF_VMAllGatherVR8 Subroutine

private subroutine ESMF_VMAllGatherVR8(vm, sendData, sendCount, recvData, recvCounts, recvOffsets, keywordEnforcer, syncflag, commhandle, rc)

Arguments

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

Calls

proc~~esmf_vmallgathervr8~~CallsGraph proc~esmf_vmallgathervr8 ESMF_VMAllGatherVR8 interface~c_esmc_vmallgatherv c_ESMC_VMAllGatherV proc~esmf_vmallgathervr8->interface~c_esmc_vmallgatherv proc~esmf_imerr ESMF_IMErr proc~esmf_vmallgathervr8->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_vmallgathervr8->proc~esmf_logfounderror proc~esmf_logseterror ESMF_LogSetError proc~esmf_vmallgathervr8->proc~esmf_logseterror proc~esmf_vmgetinit ESMF_VMGetInit proc~esmf_vmallgathervr8->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 proc~esmf_logseterror->esmf_breakpoint proc~esmf_logseterror->proc~esmf_logrc2msg proc~esmf_logseterror->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_vmallgathervr8~~CalledByGraph proc~esmf_vmallgathervr8 ESMF_VMAllGatherVR8 interface~esmf_vmallgatherv ESMF_VMAllGatherV interface~esmf_vmallgatherv->proc~esmf_vmallgathervr8 proc~esmf_distgridcreatedbai1d ESMF_DistGridCreateDBAI1D proc~esmf_distgridcreatedbai1d->interface~esmf_vmallgatherv proc~esmf_reconcileexchgattributes ESMF_ReconcileExchgAttributes proc~esmf_reconcileexchgattributes->interface~esmf_vmallgatherv proc~esmf_reconcileexchgidinfo ESMF_ReconcileExchgIDInfo proc~esmf_reconcileexchgidinfo->interface~esmf_vmallgatherv proc~esmf_vmtranslatevmid ESMF_VMTranslateVMId proc~esmf_vmtranslatevmid->interface~esmf_vmallgatherv program~esmf_vmallgathervutest ESMF_VMAllGatherVUTest program~esmf_vmallgathervutest->interface~esmf_vmallgatherv interface~esmf_distgridcreate ESMF_DistGridCreate interface~esmf_distgridcreate->proc~esmf_distgridcreatedbai1d proc~esmf_reconcilebruteforce ESMF_ReconcileBruteForce proc~esmf_reconcilebruteforce->proc~esmf_reconcileexchgattributes proc~esmf_reconcilebruteforce->proc~esmf_reconcileexchgidinfo proc~esmf_statereconcile_driver ESMF_StateReconcile_driver proc~esmf_statereconcile_driver->proc~esmf_vmtranslatevmid program~esmf_infocacheutest ESMF_InfoCacheUTest program~esmf_infocacheutest->proc~esmf_vmtranslatevmid program~esmf_statereconcileutest ESMF_StateReconcileUTest program~esmf_statereconcileutest->proc~esmf_reconcileexchgattributes

Source Code

  subroutine ESMF_VMAllGatherVR8(vm, sendData, sendCount, recvData, &
    recvCounts, recvOffsets, keywordEnforcer, syncflag, commhandle, 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(:)
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
    type(ESMF_Sync_Flag),       intent(in),  optional :: syncflag
    type(ESMF_CommHandle),      intent(out), optional :: commhandle
    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)

    ! Initialize commhandle to an invalid pointer
    if (present(commhandle)) commhandle%this = ESMF_NULL_POINTER

    ! Not implemented features
    if (present(syncflag)) then
      if (syncflag == ESMF_SYNC_NONBLOCKING) then
        call ESMF_LogSetError(ESMF_RC_NOT_IMPL, &
          msg="non-blocking mode not yet implemented", &
          ESMF_CONTEXT, rcToReturn=rc)
        return
      endif
    endif

    ! Call into the C++ interface.
    call c_ESMC_VMAllGatherV(vm, sendData, sendCount, &
      recvData, recvCounts, recvOffsets, ESMF_TYPEKIND_R8, localrc)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
      ESMF_CONTEXT, rcToReturn=rc)) return

    ! return successfully
    if (present(rc)) rc = ESMF_SUCCESS

  end subroutine ESMF_VMAllGatherVR8