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
::
i
logical,
private
::
is_prime
Source Code
pure function next_prime_internal(n)result(p)!! Find next prime number >= n (simple implementation)integer,intent(in)::ninteger::p,ilogical::is_primep=max(n,2)if(modulo(p,2)==0)p=p+1dois_prime=.true.do i=3,int(sqrt(real(p)))+1,2if(modulo(p,i)==0)thenis_prime=.false.exit end if end do if(is_prime)returnp=p+2end do end function next_prime_internal