Last change
on this file since 5119 was
5099,
checked in by abarral, 4 months ago
|
Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line
|
File size:
624 bytes
|
Rev | Line | |
---|
[2419] | 1 | FUNCTION qcheck(klon,klev,paprs,q,ql,aire) |
---|
| 2 | IMPLICIT none |
---|
[5099] | 3 | |
---|
[2419] | 4 | ! Calculer et imprimer l'eau totale. A utiliser pour verifier |
---|
| 5 | ! la conservation de l'eau |
---|
[5099] | 6 | |
---|
[2419] | 7 | include "YOMCST.h" |
---|
| 8 | INTEGER,INTENT(IN) :: klon,klev |
---|
| 9 | REAL,INTENT(IN) :: paprs(klon,klev+1), q(klon,klev), ql(klon,klev) |
---|
| 10 | REAL,INTENT(IN) :: aire(klon) |
---|
| 11 | REAL qtotal, zx, qcheck |
---|
| 12 | INTEGER i, k |
---|
[5099] | 13 | |
---|
[2419] | 14 | zx = 0.0 |
---|
| 15 | DO i = 1, klon |
---|
| 16 | zx = zx + aire(i) |
---|
| 17 | ENDDO |
---|
| 18 | qtotal = 0.0 |
---|
| 19 | DO k = 1, klev |
---|
| 20 | DO i = 1, klon |
---|
| 21 | qtotal = qtotal + (q(i,k)+ql(i,k)) * aire(i) & |
---|
| 22 | *(paprs(i,k)-paprs(i,k+1))/RG |
---|
| 23 | ENDDO |
---|
| 24 | ENDDO |
---|
[5099] | 25 | |
---|
[2419] | 26 | qcheck = qtotal/zx |
---|
[5099] | 27 | |
---|
[2419] | 28 | END FUNCTION qcheck |
---|
| 29 | |
---|
Note: See
TracBrowser
for help on using the repository browser.