Test mixval to verify operation
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.
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.
subroutine testSpan
!! Test mixval to verify operation
logical,dimension(1)::results
integer,parameter::N = 10
real(wp),dimension(N)::x
real(wp)::test,true
call random_number(x)
test = span(x)
true = maxval(x)-minval(x)
results(1) = test==true
if( .not.all(results) ) error stop "Failed span check"
end subroutine testSpan