private pure function tracer_index_by_name(h, name) result(idx)
Registry index (1-based) of the tracer named name, or 0 if none
matches. Name comparison is trim-both-sides (registry names are
fixed-length character(len=32)).
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.
Variables
Type
Visibility
Attributes
Name
Initial
integer,
private
::
it
Source Code
pure function tracer_index_by_name(h,name)result(idx)!! Registry index (1-based) of the tracer named `name`, or 0 if none!! matches. Name comparison is `trim`-both-sides (registry names are!! fixed-length `character(len=32)`).type(ocean_handle_t),pointer,intent(in)::hcharacter(len=*),intent(in)::nameinteger::idxinteger::itidx=0if(.not.allocated(h%state%multilayer%tracers))return do it=1,size(h%state%multilayer%tracers)if(trim(h%state%multilayer%tracers(it)%name)==trim(name))thenidx=itreturn end if end do end function tracer_index_by_name