MaxVectorInt.F


c**********************************************************************
#include "author.inc"
c*    $Id: MaxVectorInt.F,v 1.1 1996/02/27 19:29:10 turner Exp $
c*
c*    Returns the maximum 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_MaxVectorInt
c*      status - return status
c*
#include "copyright.inc"
c**********************************************************************
      integer function JT_MaxVectorInt(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_MaxVectorInt = ix(1)
      do i=2,n
       JT_MaxVectorInt = MAX(ix(i), JT_MaxVectorInt)
      enddo
c
      status = 0
      return
      end