SumVectorFloat.F


c**********************************************************************
#include "author.inc"
c*    $Id: SumVectorFloat.F,v 1.2 1995/07/30 17:49:29 turner Exp $
c*
c*    Computes the sum of the elements of a vector.
c*
c*    WARNING: Note that JT_SumVectorFloat *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 to be summed
c*
c*     Output:
c*      JT_SumVectorFloat
c*      status - return status
c*
#include "copyright.inc"
c**********************************************************************
      real function JT_SumVectorFloat(n, x, status)
      implicit none
c
c ... Input:
      integer n
      real x(n)
c
c ... Output:
      integer status
c
c ... Local:
      integer i
      real zero
c
      parameter (zero=0.0d0)
c
      JT_SumVectorFloat = zero
      do i=1,n
       JT_SumVectorFloat = JT_SumVectorFloat + x(i)
      enddo
c
      status = 0
      return
      end