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/transp.F90

    r5105 r5144  
    1 
    21! $Id$
    32
    4 SUBROUTINE transp(paprs, tsol, t, q, ql, qs, u, v, geom, & 
    5                   utran_e, vtran_e, utran_q, vtran_q, utran_w, vtran_w)
     3SUBROUTINE transp(paprs, tsol, t, q, ql, qs, u, v, geom, &
     4        utran_e, vtran_e, utran_q, vtran_q, utran_w, vtran_w)
    65
    76  USE dimphy
     7  USE lmdz_yomcst
     8
    89  IMPLICIT NONE
    910  ! ======================================================================
     
    1314  ! ======================================================================
    1415
    15   include "YOMCST.h"
    16 
    1716  !--inputs
    18   REAL, INTENT(IN)  :: paprs(klon, klev+1), tsol(klon), geom(klon, klev)
    19   REAL, INTENT(IN)  :: t(klon, klev), q(klon, klev), ql(klon, klev), qs(klon, klev)
    20   REAL, INTENT(IN)  :: u(klon, klev), v(klon, klev)
     17  REAL, INTENT(IN) :: paprs(klon, klev + 1), tsol(klon), geom(klon, klev)
     18  REAL, INTENT(IN) :: t(klon, klev), q(klon, klev), ql(klon, klev), qs(klon, klev)
     19  REAL, INTENT(IN) :: u(klon, klev), v(klon, klev)
    2120  !--outputs
    2221  REAL, INTENT(OUT) :: utran_e(klon), vtran_e(klon) !--lateral flux of dry static energy (J m-1 s-1)
     
    3938  DO l = 1, klev
    4039    DO i = 1, klon
    41       dm= (paprs(i,l)-paprs(i,l+1))/RG  !--mass of layer kg m-2
     40      dm = (paprs(i, l) - paprs(i, l + 1)) / RG  !--mass of layer kg m-2
    4241      !--moist static energy
    43 !      e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l)
     42      !      e = rcpd*t(i, l) + rlvtt*q(i, l) + geom(i, l)
    4443      !--dry static energy
    45       e = rcpd*t(i, l) + geom(i, l)
    46       utran_e(i) = utran_e(i) + u(i, l)*e*dm
    47       vtran_e(i) = vtran_e(i) + v(i, l)*e*dm
     44      e = rcpd * t(i, l) + geom(i, l)
     45      utran_e(i) = utran_e(i) + u(i, l) * e * dm
     46      vtran_e(i) = vtran_e(i) + v(i, l) * e * dm
    4847      !--water vapour
    49       utran_q(i) = utran_q(i) + u(i, l)*q(i,l)*dm
    50       vtran_q(i) = vtran_q(i) + v(i, l)*q(i,l)*dm
     48      utran_q(i) = utran_q(i) + u(i, l) * q(i, l) * dm
     49      vtran_q(i) = vtran_q(i) + v(i, l) * q(i, l) * dm
    5150      !--total water
    52       utran_w(i) = utran_w(i) + u(i, l)*(q(i,l)+ql(i,l)+qs(i,l))*dm
    53       vtran_w(i) = vtran_w(i) + v(i, l)*(q(i,l)+ql(i,l)+qs(i,l))*dm
     51      utran_w(i) = utran_w(i) + u(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm
     52      vtran_w(i) = vtran_w(i) + v(i, l) * (q(i, l) + ql(i, l) + qs(i, l)) * dm
    5453    ENDDO
    5554  ENDDO
    5655
    57 
    5856END SUBROUTINE transp
Note: See TracChangeset for help on using the changeset viewer.