1 | ! |
---|
2 | ! $Header$ |
---|
3 | ! |
---|
4 | SUBROUTINE bernoui (ngrid,nlay,pphi,pecin,pbern) |
---|
5 | USE dimensions_mod, ONLY: iim, jjm, llm, ndm |
---|
6 | USE paramet_mod_h, ONLY: iip1, iip2, iip3, jjp1, llmp1, llmp2, llmm1, kftd, ip1jm, ip1jmp1, & |
---|
7 | ip1jmi1, ijp1llm, ijmllm, mvar, jcfil, jcfllm |
---|
8 | IMPLICIT NONE |
---|
9 | |
---|
10 | !======================================================================= |
---|
11 | ! |
---|
12 | ! Auteur: P. Le Van |
---|
13 | ! ------- |
---|
14 | ! |
---|
15 | ! Objet: |
---|
16 | ! ------ |
---|
17 | ! calcul de la fonction de Bernouilli aux niveaux s ..... |
---|
18 | ! phi et ecin sont des arguments d'entree pour le s-pg ....... |
---|
19 | ! bern est un argument de sortie pour le s-pg ...... |
---|
20 | ! |
---|
21 | ! fonction de Bernouilli = bern = filtre de( geopotentiel + |
---|
22 | ! energ.cinet.) |
---|
23 | ! |
---|
24 | !======================================================================= |
---|
25 | ! |
---|
26 | !----------------------------------------------------------------------- |
---|
27 | ! Decalrations: |
---|
28 | ! ------------- |
---|
29 | ! |
---|
30 | |
---|
31 | |
---|
32 | ! |
---|
33 | ! Arguments: |
---|
34 | ! ---------- |
---|
35 | ! |
---|
36 | INTEGER :: nlay,ngrid |
---|
37 | REAL :: pphi(ngrid*nlay),pecin(ngrid*nlay),pbern(ngrid*nlay) |
---|
38 | ! |
---|
39 | ! Local: |
---|
40 | ! ------ |
---|
41 | ! |
---|
42 | INTEGER :: ijl |
---|
43 | ! |
---|
44 | !----------------------------------------------------------------------- |
---|
45 | ! calcul de Bernouilli: |
---|
46 | ! --------------------- |
---|
47 | ! |
---|
48 | DO ijl = 1,ngrid*nlay |
---|
49 | pbern( ijl ) = pphi( ijl ) + pecin( ijl ) |
---|
50 | END DO |
---|
51 | ! |
---|
52 | !----------------------------------------------------------------------- |
---|
53 | ! filtre: |
---|
54 | ! ------- |
---|
55 | ! |
---|
56 | CALL filtreg( pbern, jjp1, llm, 2,1, .true., 1 ) |
---|
57 | ! |
---|
58 | !----------------------------------------------------------------------- |
---|
59 | RETURN |
---|
60 | END SUBROUTINE bernoui |
---|