The TELEMAC-MASCARET system  trunk
somme.f
Go to the documentation of this file.
1 ! *******************************
2  DOUBLE PRECISION FUNCTION somme
3 ! *******************************
4 !
5  &( x , npx )
6 !
7 !***********************************************************************
8 ! BIEF V6P1 21/08/2010
9 !***********************************************************************
10 !
11 !brief SUMS THE COMPONENTS OF A VECTOR
12 !+ (ALSO SEE SOMME2 AND SUM).
13 !
14 !history J-M HERVOUET (LNH)
15 !+ 08/12/94
16 !+ V5P1
17 !+
18 !
19 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
20 !+ 13/07/2010
21 !+ V6P0
22 !+ Translation of French comments within the FORTRAN sources into
23 !+ English comments
24 !
25 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
26 !+ 21/08/2010
27 !+ V6P0
28 !+ Creation of DOXYGEN tags for automated documentation and
29 !+ cross-referencing of the FORTRAN sources
30 !
31 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
32 !| NPX |-->| SIZE OF X
33 !| X |-->| ARRAY TO SUM
34 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
35 !
37  IMPLICIT NONE
38 !
39  INTEGER NPX,I
40 !
41  DOUBLE PRECISION X(*)
42 !
43 !-----------------------------------------------------------------------
44 !
45  somme = 0.d0
46  DO i = 1 , npx
47  somme = somme + x(i)
48  ENDDO ! I
49 !
50 !-----------------------------------------------------------------------
51 !
52  RETURN
53  END
double precision function somme(X, NPX)
Definition: somme.f:7