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 test_clear()type(MeanAction)::acctype(ESMF_State)::importState,exportStatetype(ESMF_Clock)::clockinteger::statusinteger(kind=ESMF_KIND_I4),parameter::COUNTER=4logical::cleared=.FALSE.integer(kind=ESMF_KIND_I4),pointer::fptr(:)call initialize_objects(importState,exportState,clock,ESMF_TYPEKIND_R4,_RC)call acc%initialize(importState,exportState,clock,_RC)call assign_fptr(acc%counter_field,fptr,_RC)fptr=COUNTERcall acc%clear(_RC)call assign_fptr(acc%counter_field,fptr,_RC)cleared=all(fptr==0)@assertTrue(cleared,'Counter field is nonzero.')call destroy_objects(importState,exportState,clock,_RC)end subroutine test_clear