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.
Helper function that finds the number of unique values in a 1d integer
array.
This function does not seem to be used, so can probably safely be
removed.
Arguments
Type
Intent
Optional
Attributes
Name
integer(kind=c_int),
intent(in),
dimension(:)
::
var
An 1d integer arrays.
Return Value integer(kind=ip)
The return value is the number of unique values in the input array.
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.
function n_unique_values(var)result(n)!! Helper function that finds the number of unique values in a 1d integer!! array.!!!! This function does not seem to be used, so can probably safely be!! removed.use iso_c_bindinginteger(c_int),dimension(:),intent(in)::var!! An 1d integer arrays.integer(ip)::n!! The return value is the number of unique values in the input array.integer(c_int),dimension(size(var))::tmpinteger(ip)::itmp(1)=var(1)n=1do i=2,size(var)if(.not.any(tmp(1:n)==var(i)))thenn=n+1tmp(n)=var(i)end if end do end function n_unique_values