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