withinBounds Module Function

pure module function withinBounds(array, lowerBound, upperBound) result(res)

Returns map array >= lowerBound .and. array <= upperBound

Arguments

Type IntentOptional Attributes Name
integer(kind=ik), intent(in), dimension(:) :: array
integer(kind=ik), intent(in) :: lowerBound
integer(kind=ik), intent(in) :: upperBound

Return Value logical, allocatable, dimension(:)