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_Array)::dstArray1,dstArray2integer::dstF90(100,150)! Initialize return coderc=ESMF_SUCCESSprint*,"User Coupler Run starting"! Get the Arrays from the statescall ESMF_StateGet(exportState,"dstArray1",dstArray1,rc=rc)if(rc/=ESMF_SUCCESS)return! bail outcall ESMF_StateGet(exportState,"dstArray2",dstArray2,rc=rc)if(rc/=ESMF_SUCCESS)return! bail out! ArrayGather() dstArray2 into dstF90 on rootPet=2call ESMF_ArrayGather(dstArray2,dstF90,rootPet=2,rc=rc)if(rc/=ESMF_SUCCESS)return! bail out! ArrayScatter() dstF90 on rootPet=2 across dstArray1call ESMF_ArrayScatter(dstArray1,dstF90,rootPet=2,rc=rc)if(rc/=ESMF_SUCCESS)return! bail outprint*,"User Coupler Run returning"end subroutine user_run