Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
Source Code
subroutine user_run(comp,importState,exportState,clock,rc)type(ESMF_CplComp)::comptype(ESMF_State)::importState,exportStatetype(ESMF_Clock)::clockinteger,intent(out)::rc! Local variablestype(ESMF_FieldBundle)::srcFieldBundle,dstFieldBundle! Initialize return coderc=ESMF_SUCCESSprint*,"User Coupler Run starting"! Get source FieldBundle out of import Statecall ESMF_StateGet(importState,"fieldbundle data",srcFieldBundle,rc=rc)if(rc/=ESMF_SUCCESS)call ESMF_Finalize(rc=rc,endflag=ESMF_END_ABORT)! Get destination FieldBundle out of export Statecall ESMF_StateGet(exportState,"fieldbundle data",dstFieldBundle,rc=rc)if(rc/=ESMF_SUCCESS)call ESMF_Finalize(rc=rc,endflag=ESMF_END_ABORT)! Use FieldBundleRedist() to take data from srcFieldBundle to dstFieldBundlecall ESMF_FieldBundleRedist(srcFieldBundle=srcFieldBundle,dstFieldBundle=dstFieldBundle,&routehandle=routehandle,rc=rc)if(rc/=ESMF_SUCCESS)call ESMF_Finalize(rc=rc,endflag=ESMF_END_ABORT)print*,"User Coupler Run returning"end subroutine user_run