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_final(comp,importState,exportState,clock,rc)type(ESMF_GridComp)::comptype(ESMF_State)::importState,exportStatetype(ESMF_Clock)::clockinteger,intent(out)::rc! ! Local variablestype(mydata),pointer::mydatablocktype(wrapper)::mywrappertype(ESMF_Field)::humidityrc=ESMF_SUCCESSprint*,"User Comp Final starting"! Query component for information.print*,"final, ready to call get data ptr"nullify(mydatablock)mywrapper%wrap=>mydatablockcall ESMF_GridCompGetInternalState(comp,mywrapper,rc)if(rc/=ESMF_SUCCESS)return! bail on error mydatablock=>mywrapper%wrapprint*,"final, local data =",mydatablock%index,&mydatablock%scale_factor,mydatablock%flag! garbage collection deallocate(mydatablock)call ESMF_StateGet(importState,"humidity",humidity,rc=rc)if(rc/=ESMF_SUCCESS)return! bail on error call ESMF_FieldDestroy(humidity,rc=rc)if(rc/=ESMF_SUCCESS)return! bail on error print*,"User Comp Final returning"end subroutine user_final