usercpl_run Subroutine

private subroutine usercpl_run(comp, importState, exportState, clock, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_CplComp) :: comp
type(ESMF_State) :: importState
type(ESMF_State) :: exportState
type(ESMF_Clock) :: clock
integer, intent(out) :: rc

Calls

proc~~usercpl_run~~CallsGraph proc~usercpl_run usercpl_run esmf_stateget esmf_stateget proc~usercpl_run->esmf_stateget interface~esmf_attributeupdate ESMF_AttributeUpdate proc~usercpl_run->interface~esmf_attributeupdate interface~esmf_vmget ESMF_VMGet proc~usercpl_run->interface~esmf_vmget proc~esmf_cplcompget ESMF_CplCompGet proc~usercpl_run->proc~esmf_cplcompget proc~esmf_attributeupdatecplcomp ESMF_AttributeUpdateCplComp interface~esmf_attributeupdate->proc~esmf_attributeupdatecplcomp proc~esmf_attributeupdatefield ESMF_AttributeUpdateField interface~esmf_attributeupdate->proc~esmf_attributeupdatefield proc~esmf_attributeupdatefieldbundle ESMF_AttributeUpdateFieldBundle interface~esmf_attributeupdate->proc~esmf_attributeupdatefieldbundle proc~esmf_attributeupdategridcomp ESMF_AttributeUpdateGridComp interface~esmf_attributeupdate->proc~esmf_attributeupdategridcomp proc~esmf_attributeupdatescicomp ESMF_AttributeUpdateSciComp interface~esmf_attributeupdate->proc~esmf_attributeupdatescicomp proc~esmf_attributeupdatestate ESMF_AttributeUpdateState interface~esmf_attributeupdate->proc~esmf_attributeupdatestate proc~esmf_vmgetdefault ESMF_VMGetDefault interface~esmf_vmget->proc~esmf_vmgetdefault proc~esmf_vmgetpetspecific ESMF_VMGetPetSpecific interface~esmf_vmget->proc~esmf_vmgetpetspecific proc~esmf_compget ESMF_CompGet proc~esmf_cplcompget->proc~esmf_compget proc~esmf_compstatusget ESMF_CompStatusGet proc~esmf_cplcompget->proc~esmf_compstatusget proc~esmf_cplcompgetinit ESMF_CplCompGetInit proc~esmf_cplcompget->proc~esmf_cplcompgetinit proc~esmf_imerr ESMF_IMErr proc~esmf_cplcompget->proc~esmf_imerr proc~esmf_logfounderror ESMF_LogFoundError proc~esmf_cplcompget->proc~esmf_logfounderror

Source Code

  subroutine usercpl_run(comp, importState, exportState, clock, rc)
    type(ESMF_CplComp) :: comp
    type(ESMF_State) :: importState, exportState
    type(ESMF_Clock) :: clock
    integer, intent(out) :: rc

    type(ESMF_VM)               :: vm
    integer                     :: myPet

    integer, dimension(2)       :: rootList

    rc = ESMF_SUCCESS

    call ESMF_CplCompGet(comp, vm=vm, rc=rc)
    if (rc/=ESMF_SUCCESS) return
    call ESMF_VMGet(vm, localPet=myPet, rc=rc)
    if (rc/=ESMF_SUCCESS) return

    call ESMF_StateGet(importState, rc=rc)
    if (rc/=ESMF_SUCCESS) return
    call ESMF_StateGet(exportState, rc=rc)
    if (rc/=ESMF_SUCCESS) return

    rootList = (/0,1/)
    call ESMF_AttributeUpdate(importState, vm, rootList=rootList, rc=rc)
    if (rc/=ESMF_SUCCESS) return

  end subroutine usercpl_run