Nodes of different colours represent the following:
Solid arrows point from a submodule to the (sub)module which it is
descended from. Dashed arrows point from a module or program unit to
modules which it uses.
Where possible, edges connecting nodes are
given different colours to make them easier to distinguish in
large graphs.
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 f_esmf_statecollectgarbage(state,rc)#undef ESMF_METHOD#define ESMF_METHOD "f_esmf_statecollectgarbage"use ESMF_UtilTypesModuse ESMF_BaseModuse ESMF_LogErrModuse ESMF_StateTypesModuse ESMF_StateModimplicit none type(ESMF_State)::stateinteger,intent(out)::rcinteger::localrc! initialize return code; assume routine not implementedlocalrc=ESMF_RC_NOT_IMPLrc=ESMF_RC_NOT_IMPL!print *, "collecting State garbage"if(associated(state%statep))then! destruct internal data allocationscall ESMF_StateDestruct(state%statep,rc=localrc)if(ESMF_LogFoundError(localrc,&ESMF_ERR_PASSTHRU,&ESMF_CONTEXT,&rcToReturn=rc))return! deallocate actual StateClass allocationdeallocate(state%statep,stat=localrc)localrc=merge(ESMF_SUCCESS,ESMF_RC_MEM_DEALLOCATE,localrc==0)if(ESMF_LogFoundDeallocError(localrc,msg="Deallocating State",&ESMF_CONTEXT,&rcToReturn=rc))return endif nullify(state%statep)! return successfullyrc=ESMF_SUCCESSend subroutine f_esmf_statecollectgarbage