Ignore:
Timestamp:
Jul 29, 2024, 11:01:04 PM (3 months ago)
Author:
abarral
Message:

Put YOMCST.h into modules

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)
     1FUNCTION qcheck(klon, klev, paprs, q, ql, aire)
     2  USE lmdz_yomcst
     3
    24  IMPLICIT NONE
    35
     
    57  ! la conservation de l'eau
    68
    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)
    1112  REAL qtotal, zx, qcheck
    1213  INTEGER i, k
     
    1415  zx = 0.0
    1516  DO i = 1, klon
    16      zx = zx + aire(i)
     17    zx = zx + aire(i)
    1718  ENDDO
    1819  qtotal = 0.0
    1920  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
     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
    2425  ENDDO
    2526
    26   qcheck = qtotal/zx
     27  qcheck = qtotal / zx
    2728
    2829END FUNCTION qcheck
Note: See TracChangeset for help on using the changeset viewer.