source: LMDZ6/branches/Amaury_dev/libf/phylmd/evappot.F90 @ 5144

Last change on this file since 5144 was 5144, checked in by abarral, 7 weeks ago

Put YOMCST.h into modules

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
File size: 1.1 KB
Line 
1SUBROUTINE evappot(klon, nbsrf, ftsol, pplay, cdragh, &
2        t_seri, q_seri, u_seri, v_seri, evap_pot)
3  USE lmdz_yoethf
4  USE lmdz_fcttre, ONLY: foeew, foede, qsats, qsatl, dqsats, dqsatl, thermcep
5  USE lmdz_yomcst
6
7  IMPLICIT NONE
8
9  INTEGER :: klon, nbsrf
10  REAL, DIMENSION(klon, nbsrf) :: ftsol, evap_pot
11  REAL, DIMENSION(klon) :: pplay, t_seri, wind, q_seri, u_seri, v_seri, cdragh
12
13  INTEGER :: nsrf, i
14  REAL, DIMENSION(klon, nbsrf) :: qsat_ftsol
15  REAL, DIMENSION(klon) :: rhos, norme_u
16  REAL :: t_coup
17
18  t_coup = 234.   ! Quelle horreur !!!!!
19
20  DO nsrf = 1, nbsrf
21    DO i = 1, klon
22      IF (ftsol(i, nsrf)<t_coup) THEN
23        qsat_ftsol(i, nsrf) = qsats(ftsol(i, nsrf)) / pplay(i)
24      ELSE
25        qsat_ftsol(i, nsrf) = qsatl(ftsol(i, nsrf)) / pplay(i)
26      ENDIF
27    ENDDO
28  ENDDO
29  ! ========================================================== c
30  ! Calcul de l'evaporation Potentielle
31
32  rhos(:) = pplay(:) / (RD * t_seri(:))
33  norme_u(:) = 1. + sqrt(u_seri(:) * u_seri(:) + v_seri(:) * v_seri(:))
34  DO nsrf = 1, nbsrf
35    evap_pot(:, nsrf) = rhos(:) * cdragh(:) * norme_u(:) * (qsat_ftsol(:, nsrf) - q_seri(:))
36  ENDDO
37  RETURN
38
39END
Note: See TracBrowser for help on using the repository browser.