ESMF_VMAllGatherI8 Subroutine

private subroutine ESMF_VMAllGatherI8(vm, sendData, recvData, count, keywordEnforcer, syncflag, commhandle, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_VM), intent(in) :: vm
integer(kind=ESMF_KIND_I8), intent(in), target :: sendData(:)
integer(kind=ESMF_KIND_I8), intent(out), target :: recvData(:)
integer, intent(in) :: count
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_vmallgatheri8~~CallsGraph proc~esmf_vmallgatheri8 ESMF_VMAllGatherI8 interface~c_esmc_vmallgather c_ESMC_VMAllGather proc~esmf_vmallgatheri8->interface~c_esmc_vmallgather interface~c_esmc_vmallgathernb c_ESMC_VMAllGatherNB proc~esmf_vmallgatheri8->interface~c_esmc_vmallgathernb proc~esmf_imerr ESMF_IMErr proc~esmf_vmallgatheri8->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_vmallgatheri8->proc~esmf_logfounderror proc~esmf_vmgetinit ESMF_VMGetInit proc~esmf_vmallgatheri8->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_vmallgatheri8~~CalledByGraph proc~esmf_vmallgatheri8 ESMF_VMAllGatherI8 interface~esmf_vmallgather ESMF_VMAllGather interface~esmf_vmallgather->proc~esmf_vmallgatheri8 proc~buildupdatepackets BuildUpdatePackets proc~buildupdatepackets->interface~esmf_vmallgather proc~esmf_distgridcreatedbai ESMF_DistGridCreateDBAI proc~esmf_distgridcreatedbai->interface~esmf_vmallgather proc~esmf_distgridcreatedbai1d ESMF_DistGridCreateDBAI1D proc~esmf_distgridcreatedbai1d->interface~esmf_vmallgather proc~esmf_distgridcreatedbai1d1de ESMF_DistGridCreateDBAI1D1DE proc~esmf_distgridcreatedbai1d1de->interface~esmf_vmallgather proc~esmf_distgridcreatedbai1d1dei8 ESMF_DistGridCreateDBAI1D1DEI8 proc~esmf_distgridcreatedbai1d1dei8->interface~esmf_vmallgather proc~esmf_locstreamcreatefromlocal ESMF_LocStreamCreateFromLocal proc~esmf_locstreamcreatefromlocal->interface~esmf_vmallgather proc~esmf_meshcreatefromunstruct ESMF_MeshCreateFromUnstruct proc~esmf_meshcreatefromunstruct->interface~esmf_vmallgather proc~esmf_reconcileexchgattributes ESMF_ReconcileExchgAttributes proc~esmf_reconcileexchgattributes->interface~esmf_vmallgather proc~esmf_reconcileinitialize ESMF_ReconcileInitialize proc~esmf_reconcileinitialize->interface~esmf_vmallgather proc~esmf_vmtranslatevmid ESMF_VMTranslateVMId proc~esmf_vmtranslatevmid->interface~esmf_vmallgather proc~esmfio_create ESMFIO_Create proc~esmfio_create->interface~esmf_vmallgather proc~nuopc_factorswrite NUOPC_FactorsWrite proc~nuopc_factorswrite->interface~esmf_vmallgather program~esmf_vmallgatherutest ESMF_VMAllGatherUTest program~esmf_vmallgatherutest->interface~esmf_vmallgather interface~esmf_distgridcreate ESMF_DistGridCreate interface~esmf_distgridcreate->proc~esmf_distgridcreatedbai interface~esmf_distgridcreate->proc~esmf_distgridcreatedbai1d interface~esmf_distgridcreate->proc~esmf_distgridcreatedbai1d1de interface~esmf_distgridcreate->proc~esmf_distgridcreatedbai1d1dei8 interface~esmf_locstreamcreate ESMF_LocStreamCreate interface~esmf_locstreamcreate->proc~esmf_locstreamcreatefromlocal interface~nuopc_write NUOPC_Write interface~nuopc_write->proc~nuopc_factorswrite proc~esmf_meshcreatefromfileold ESMF_MeshCreateFromFileOld proc~esmf_meshcreatefromfileold->proc~esmf_meshcreatefromunstruct proc~esmf_meshcreatefromscrip ESMF_MeshCreateFromScrip proc~esmf_meshcreatefromscrip->proc~esmf_meshcreatefromunstruct proc~esmf_reconcilebruteforce ESMF_ReconcileBruteForce proc~esmf_reconcilebruteforce->proc~esmf_reconcileexchgattributes proc~esmf_statereconcile_driver ESMF_StateReconcile_driver proc~esmf_statereconcile_driver->proc~esmf_reconcileinitialize proc~esmf_statereconcile_driver->proc~esmf_vmtranslatevmid proc~initializeipdv05p6b InitializeIPDv05p6b proc~initializeipdv05p6b->proc~buildupdatepackets program~esmf_infocacheutest ESMF_InfoCacheUTest program~esmf_infocacheutest->proc~esmf_vmtranslatevmid program~esmf_iocomputest ESMF_IOCompUTest program~esmf_iocomputest->proc~esmfio_create program~esmf_statereconcileutest ESMF_StateReconcileUTest program~esmf_statereconcileutest->proc~esmf_reconcileexchgattributes

Source Code

  subroutine ESMF_VMAllGatherI8(vm, sendData, recvData, count, &
    keywordEnforcer, syncflag, commhandle, rc)
!
! !ARGUMENTS:
    type(ESMF_VM),                 intent(in)            :: vm
    integer(ESMF_KIND_I8), target, intent(in)            :: sendData(:)
    integer(ESMF_KIND_I8), target, intent(out)           :: recvData(:)
    integer,                       intent(in)            :: count
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
    integer                 :: size
    logical                 :: blocking
    type(ESMF_CommHandle)   :: localcommhandle

    ! 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

    ! Decide whether this is blocking or non-blocking
    blocking = .true. !default is blocking
    if (present(syncflag)) then
      if (syncflag == ESMF_SYNC_NONBLOCKING) blocking = .false. ! non-blocking
    endif
    
    size = count * 8 ! 8 bytes
    ! Call into the C++ interface.
    if (blocking) then
      call c_ESMC_VMAllGather(vm, sendData, recvData, size, localrc)
      if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return
    else
      call c_ESMC_VMAllGatherNB(vm, sendData, recvData, size, &
        localcommhandle, localrc)
      if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
        ESMF_CONTEXT, rcToReturn=rc)) return
      ! Check if we need to pass back the commhandle
      if (present(commhandle)) then
        commhandle = localcommhandle  ! copy the commhandle pointer back
        ! Set init code
        ESMF_INIT_SET_CREATED(commhandle)
      endif
    endif

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

  end subroutine ESMF_VMAllGatherI8