The TELEMAC-MASCARET system  trunk
cqueue.f
Go to the documentation of this file.
1 ! *****************
2  SUBROUTINE cqueue
3 ! *****************
4 !
5  &( jfre , jbis , coef1 )
6 !
7 !***********************************************************************
8 ! TOMAWAC V6P1 14/06/2011
9 !***********************************************************************
10 !
11 !brief ADJUSTS FREQUENCY INDICES AND COMPUTES TAIL
12 !
13 !note THE SPECTRUM IS ASSUMED TO BE 0 FOR FREQUENCIES LOWER THAN
14 !+ THE FIRST DISCRETISED FREQUENCY.
15 !note BEYOND THE LAST DISCRETISED FREQUENCY THE SPECTRUM IS
16 !+ ASSUMED TO DECREASE FOLLOWING A FREQ**(-TAILF) LAW.
17 !
18 !history M. BENOIT
19 !+ 26/06/96
20 !+ V1P2
21 !+
22 !
23 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
24 !+ 13/07/2010
25 !+ V6P0
26 !+ Translation of French comments within the FORTRAN sources into
27 !+ English comments
28 !
29 !history N.DURAND (HRW), S.E.BOURBAN (HRW)
30 !+ 21/08/2010
31 !+ V6P0
32 !+ Creation of DOXYGEN tags for automated documentation and
33 !+ cross-referencing of the FORTRAN sources
34 !
35 !history G.MATTAROLO (EDF - LNHE)
36 !+ 14/06/2011
37 !+ V6P1
38 !+ Translation of French names of the variables in argument
39 !
40 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
41 !| COEF1 |---| MULTIPLYING COEF. F(JFRE)=COEF1*F(JBIS)
42 !| JBIS |---| ADJUSTED INDEX IN THE INTERVAL [1;NF]
43 !| JFRE |-->| FREQUENCY INDEX
44 !| NF |-->| NUMBER OF FREQUENCIES
45 !| RAISF |-->| FREQUENTIAL RATIO
46 !| TAILF |-->| SPECTRUM QUEUE FACTOR
47 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
48 !
49  USE interface_tomawac, ex_cqueue => cqueue
50  USE declarations_tomawac, ONLY : nf , raisf , tailf
51  IMPLICIT NONE
52 !
53 !.....VARIABLES IN ARGUMENT
54 ! """""""""""""""""""""
55  INTEGER, INTENT(IN) :: JFRE
56  DOUBLE PRECISION, INTENT(INOUT) :: COEF1
57  INTEGER, INTENT(INOUT) :: JBIS
58 !
59 !
60  IF (jfre.GT.nf) THEN
61  jbis = nf
62  coef1= 1.d0/raisf**(dble(jfre-nf)*tailf)
63  ELSEIF (jfre.LT.1) THEN
64  jbis = 1
65  coef1= 0.d0
66  ELSE
67  jbis = jfre
68  coef1= 1.d0
69  ENDIF
70 !
71  RETURN
72  END
subroutine cqueue(JFRE, JBIS, COEF1)
Definition: cqueue.f:7