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 land_run(comp,importState,exportState,clock,rc)type(ESMF_GridComp)::comptype(ESMF_State)::importState,exportStatetype(ESMF_Clock)::clockinteger,intent(out)::rc! Local variablesreal(ESMF_KIND_R8)::pi,kx,kytype(ESMF_Field)::fieldreal(ESMF_KIND_R8),pointer::farrayPtr(:,:)! matching F90 array pointerinteger::i,j,elb(2),eub(2)! Initialize return coderc=ESMF_SUCCESSprint*,"Land Run starting"pi=3.14159d0! Get the source Field from the export Statecall ESMF_StateGet(exportState,"F_lnd",field,rc=rc)if(rc/=ESMF_SUCCESS)return! bail out! Gain access to actual data via F90 array pointercall ESMF_FieldGet(field,localDe=0,farrayPtr=farrayPtr,&exclusiveLBound=elb,exclusiveUBound=eub,rc=rc)if(rc/=ESMF_SUCCESS)return! bail out! Fill source Field with datakx=2.*pi/(eub(1)-elb(1))ky=2.*pi/(eub(2)-elb(2))do i=elb(1),eub(1)do j=elb(2),eub(2)farrayPtr(i,j)=cos(kx*i)*sin(ky*j)enddo enddo print*,"Land Run returning"end subroutine land_run