The TELEMAC-MASCARET system  trunk
ecrete.f
Go to the documentation of this file.
1 ! *****************
2  SUBROUTINE ecrete
3 ! *****************
4 !
5  &( f , depth , npoin2, ndire , nf , promin)
6 !
7 !***********************************************************************
8 ! TOMAWAC V6P1 15/06/2011
9 !***********************************************************************
10 !
11 !brief INITIALISES THE VARIANCE SPECTRUM (SETS IT TO 0) AT
12 !+ ALL THE NODES WHERE THE DEPTH OF WATER IS LESS
13 !+ THAN PROMIN.
14 !
15 !history M. BENOIT (EDF LNHE)
16 !+ 19/01/2004
17 !+ V5P4
18 !+
19 !
20 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
21 !+ 13/07/2010
22 !+ V6P0
23 !+ Translation of French comments within the FORTRAN sources into
24 !+ English comments
25 !
26 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
27 !+ 21/08/2010
28 !+ V6P0
29 !+ Creation of DOXYGEN tags for automated documentation and
30 !+ cross-referencing of the FORTRAN sources
31 !
32 !history G.MATTAROLO (EDF - LNHE)
33 !+ 15/06/2011
34 !+ V6P1
35 !+ Translation of French names of the variables in argument
36 !
37 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38 !| DEPTH |-->| WATER DEPTH
39 !| F |<->| VARIANCE DENSITY DIRECTIONAL SPECTRUM
40 !| NF |-->| NUMBER OF FREQUENCIES
41 !| NDIRE |-->| NUMBER OF DIRECTIONS
42 !| NPOIN2 |-->| NUMBER OF POINTS IN 2D MESH
43 !| PROMIN |-->| MINIMUM VALUE OF WATER DEPTH
44 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
45 !
47  USE interface_tomawac, ex_ecrete => ecrete
48  IMPLICIT NONE
49 !
50 !
51  INTEGER, INTENT(IN) :: NPOIN2 , NDIRE, NF
52  DOUBLE PRECISION, INTENT(IN) :: DEPTH(npoin2),PROMIN
53  DOUBLE PRECISION, INTENT(INOUT) :: F(npoin2,ndire,nf)
54  INTEGER IP , JP , JF
55 !
56  DO ip=1,npoin2
57  IF (depth(ip).LT.promin) THEN
58  DO jf=1,nf
59  DO jp=1,ndire
60  f(ip,jp,jf)=0.0d0
61  ENDDO
62  ENDDO
63  ENDIF
64  ENDDO
65 !
66  RETURN
67  END
subroutine ecrete(F, DEPTH, NPOIN2, NDIRE, NF, PROMIN)
Definition: ecrete.f:7