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(kind=default_int),
private
::
i
logical,
private
::
use_threads
Source Code
function sum_vector_sp(vector,threaded)result(res)real(sp),intent(in)::vector(:)logical,intent(in),optional::threadedlogical::use_threadsreal(sp)::resinteger(default_int)::ires=0_spif(present(threaded))thenuse_threads=threadedelseuse_threads=use_threaded_defaultend if if(use_threads)then!$omp parallel do private(i) collapse(1) reduction(+:res)do i=1,size(vector,1)res=res+vector(i)end do!$omp end parallel doelseres=sum(vector)end if end function sum_vector_sp