Changeset 3356 for LMDZ6/branches/DYNAMICO-conv/libf/phylmd/calwake.F90
- Timestamp:
- Jun 29, 2018, 12:31:11 PM (6 years ago)
- Location:
- LMDZ6/branches/DYNAMICO-conv
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/DYNAMICO-conv
- Property svn:mergeinfo changed
-
LMDZ6/branches/DYNAMICO-conv/libf/phylmd/calwake.F90
r3000 r3356 4 4 SUBROUTINE calwake(iflag_wake_tend, paprs, pplay, dtime, & 5 5 t, q, omgb, & 6 dt_dwn, dq_dwn, m_dwn, m_up, dt_a, dq_a, &7 sigd, &8 wake_deltat, wake_deltaq, wake_s, wake_dens, &6 dt_dwn, dq_dwn, m_dwn, m_up, dt_a, dq_a, wgen, & 7 sigd, Cin, & 8 wake_deltat, wake_deltaq, wake_s, awake_dens, wake_dens, & 9 9 wake_dth, wake_h, & 10 10 wake_pe, wake_fip, wake_gfl, & … … 14 14 wake_omg, wake_dp_deltomg, & 15 15 wake_spread, wake_cstar, wake_d_deltat_gw, & 16 wake_ddeltat, wake_ddeltaq, wake_ds, wake_ddens)16 wake_ddeltat, wake_ddeltaq, wake_ds, awake_ddens, wake_ddens) 17 17 ! ************************************************************** 18 18 ! * … … 45 45 REAL, DIMENSION(klon, klev), INTENT (IN) :: m_up, m_dwn 46 46 REAL, DIMENSION(klon, klev), INTENT (IN) :: dt_a, dq_a 47 REAL, DIMENSION(klon), INTENT (IN) :: wgen 47 48 REAL, DIMENSION(klon), INTENT (IN) :: sigd 49 REAL, DIMENSION(klon), INTENT (IN) :: Cin 48 50 ! Input/Output 49 51 ! ------------ 50 52 REAL, DIMENSION(klon, klev), INTENT (INOUT) :: wake_deltat, wake_deltaq 51 53 REAL, DIMENSION(klon), INTENT (INOUT) :: wake_s 52 REAL, DIMENSION(klon), INTENT (INOUT) :: wake_dens54 REAL, DIMENSION(klon), INTENT (INOUT) :: awake_dens, wake_dens 53 55 ! Output 54 56 ! ------ … … 67 69 REAL, DIMENSION(klon), INTENT (OUT) :: wake_cstar 68 70 REAL, DIMENSION(klon, klev), INTENT (OUT) :: wake_ddeltat, wake_ddeltaq 69 REAL, DIMENSION(klon), INTENT (OUT) :: wake_ds, wake_ddens71 REAL, DIMENSION(klon), INTENT (OUT) :: wake_ds, awake_ddens, wake_ddens 70 72 71 73 … … 88 90 REAL, DIMENSION(klon, klev) :: tx, qx 89 91 REAL, DIMENSION(klon) :: hw, wape, fip, gfl 90 REAL, DIMENSION(klon) :: sigmaw, wdens92 REAL, DIMENSION(klon) :: sigmaw, awdens, wdens 91 93 REAL, DIMENSION(klon, klev) :: omgbdth 92 94 REAL, DIMENSION(klon, klev) :: dp_omgb … … 99 101 REAL, DIMENSION(klon, klev) :: d_deltat_gw 100 102 REAL, DIMENSION(klon, klev) :: d_deltatw, d_deltaqw 101 REAL, DIMENSION(klon) :: d_sigmaw, d_ wdens103 REAL, DIMENSION(klon) :: d_sigmaw, d_awdens, d_wdens 102 104 103 105 REAL :: rdcp … … 105 107 106 108 IF (prt_level >= 10) THEN 107 print *, '-> calwake, wake_s input ', wake_s(1)109 print *, '-> calwake, wake_s, wgen input ', wake_s(1), wgen(1) 108 110 ENDIF 109 111 … … 147 149 d_deltaqw(:,:) = 0. 148 150 d_sigmaw(:) = 0. 151 d_awdens(:) = 0. 149 152 d_wdens(:) = 0. 150 153 ! … … 179 182 180 183 DO i = 1, klon 184 awdens(i) = max(0., awake_dens(i)) 181 185 wdens(i) = max(0., wake_dens(i)) 182 186 END DO … … 206 210 CALL wake(znatsurf, p, ph, pi, dtime, & 207 211 te, qe, omgbe, & 208 dtdwn, dqdwn, amdwn, amup, dta, dqa, &209 sigd0, &210 dtw, dqw, sigmaw, wdens, & ! state variables212 dtdwn, dqdwn, amdwn, amup, dta, dqa, wgen, & 213 sigd0, Cin, & 214 dtw, dqw, sigmaw, awdens, wdens, & ! state variables 211 215 dth, hw, wape, fip, gfl, & 212 216 dtls, dqls, ktopw, omgbdth, dp_omgb, tx, qx, & 213 217 dtke, dqke, omg, dp_deltomg, spread, cstar, & 214 218 d_deltat_gw, & 215 d_deltatw, d_deltaqw, d_sigmaw, d_ wdens) ! tendencies219 d_deltatw, d_deltaqw, d_sigmaw, d_awdens, d_wdens) ! tendencies 216 220 217 221 ! … … 274 278 IF (ktopw(i)>0) THEN 275 279 wake_ds(i) = d_sigmaw(i)*dtime 280 awake_ddens(i) = d_awdens(i)*dtime 276 281 wake_ddens(i) = d_wdens(i)*dtime 277 282 ELSE … … 298 303 DO i = 1, klon 299 304 wake_s(i) = sigmaw(i) 305 awake_dens(i) = awdens(i) 300 306 wake_dens(i) = wdens(i) 301 307 END DO
Note: See TracChangeset
for help on using the changeset viewer.