Changeset 5144 for LMDZ6/branches/Amaury_dev/libf/phylmd/qcheck.F90
- Timestamp:
- Jul 29, 2024, 11:01:04 PM (3 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/qcheck.F90
r5134 r5144 1 FUNCTION qcheck(klon,klev,paprs,q,ql,aire) 1 FUNCTION qcheck(klon, klev, paprs, q, ql, aire) 2 USE lmdz_yomcst 3 2 4 IMPLICIT NONE 3 5 … … 5 7 ! la conservation de l'eau 6 8 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) 9 INTEGER, INTENT(IN) :: klon, klev 10 REAL, INTENT(IN) :: paprs(klon, klev + 1), q(klon, klev), ql(klon, klev) 11 REAL, INTENT(IN) :: aire(klon) 11 12 REAL qtotal, zx, qcheck 12 13 INTEGER i, k … … 14 15 zx = 0.0 15 16 DO i = 1, klon 16 17 zx = zx + aire(i) 17 18 ENDDO 18 19 qtotal = 0.0 19 20 DO k = 1, klev 20 21 qtotal = qtotal + (q(i,k)+ql(i,k)) * aire(i) &22 *(paprs(i,k)-paprs(i,k+1))/RG23 21 DO i = 1, klon 22 qtotal = qtotal + (q(i, k) + ql(i, k)) * aire(i) & 23 * (paprs(i, k) - paprs(i, k + 1)) / RG 24 ENDDO 24 25 ENDDO 25 26 26 qcheck = qtotal /zx27 qcheck = qtotal / zx 27 28 28 29 END FUNCTION qcheck
Note: See TracChangeset
for help on using the changeset viewer.