SumVectorInt.F
c**********************************************************************
#include "author.inc"
c* $Id: SumVectorInt.F,v 1.2 1995/07/30 17:49:30 turner Exp $
c*
c* Computes the sum of the elements of an integer vector.
c*
c* <PARAMETER LIST>
c*
c* Input:
c* n - number of elements
c* ix - vector to be summed
c*
c* Output:
c* JT_SumVectorInt
c* status - return status
c*
#include "copyright.inc"
c**********************************************************************
integer function JT_SumVectorInt(n, ix, status)
implicit none
c
c ... Input:
integer n
real ix(n)
c
c ... Output:
integer status
c
c ... Local:
integer i
c
JT_SumVectorInt = 0
do i=1,n
JT_SumVectorInt = JT_SumVectorInt + ix(i)
enddo
c
status = 0
return
end