MaxVectorFloat.F


c**********************************************************************
#include "author.inc"
c*    $Id: MaxVectorFloat.F,v 1.1 1996/02/27 19:29:08 turner Exp $
c*
c*    Returns the maximum value of an floating-point vector.
c*
c*    WARNING: Note that JT_MaxVectorFloat *must* be declared real in
c*             routines that use it.
c*
c*    <PARAMETER LIST>
c*
c*     Input:
c*      n - number of elements
c*      x - vector
c*
c*     Output:
c*      JT_MaxVectorFloat
c*      status - return status
c*
#include "copyright.inc"
c**********************************************************************
      real function JT_MaxVectorFloat(n, x, status)
      implicit none
c
c ... Input:
      integer n
      real x(n)
c
c ... Output:
      integer status
c
c ... Local:
      integer i
c
      JT_MaxVectorFloat = x(1)
      do i=2,n
       JT_MaxVectorFloat = MAX(x(i), JT_MaxVectorFloat)
      enddo
c
      status = 0
      return
      end