MinVectorInt.F
c**********************************************************************
#include "author.inc"
c* $Id: MinVectorInt.F,v 1.3 1996/02/27 19:29:47 turner Exp $
c*
c* Returns the minimum value of an integer vector.
c*
c* <PARAMETER LIST>
c*
c* Input:
c* n - number of elements
c* ix - vector
c*
c* Output:
c* JT_MinVectorInt
c* status - return status
c*
#include "copyright.inc"
c**********************************************************************
integer function JT_MinVectorInt(n, ix, status)
implicit none
c
c ... Input:
integer n
integer ix(n)
c
c ... Output:
integer status
c
c ... Local:
integer i
c
JT_MinVectorInt = ix(1)
do i=2,n
JT_MinVectorInt = MIN(ix(i), JT_MinVectorInt)
enddo
c
status = 0
return
end