Changeset 102 for trunk/libf/phytitan/ajsec.F
- Timestamp:
- Mar 24, 2011, 11:46:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libf/phytitan/ajsec.F
r3 r102 3 3 ! 4 4 ! ADAPTATION GCM POUR CP(T) 5 SUBROUTINE ajsec(paprs, pplay, ppk, tfi, ufi, vfi, nq, qfi, 5 SUBROUTINE ajsec(paprs, pplay, ppk, tfi, ufi, vfi, nq, qfi, 6 6 . d_tfi, d_ufi, d_vfi, d_qfi) 7 8 use dimphy 7 9 IMPLICIT none 8 10 c====================================================================== … … 23 25 c d_vfi-----output-R-Incrementation du vent meridien 24 26 c d_qfi-----output-R-Incrementation des traceurs 25 26 27 c====================================================================== 27 28 #include "dimensions.h" 28 #include "dimphy.h"29 29 #include "YOMCST.h" 30 30 REAL paprs(klon,klev+1), pplay(klon,klev) … … 36 36 REAL qfi(klon,klev,nq), d_qfi(klon,klev,nq) 37 37 c 38 INTEGER limbas, limhau ! les couches a ajuster 39 ccc PARAMETER (limbas=klev-3, limhau=klev) 40 PARAMETER (limbas=1, limhau=klev) 38 INTEGER,save :: limbas, limhau ! les couches a ajuster 41 39 c 42 40 REAL zh(klon,klev) … … 51 49 c Initialisation: 52 50 c 51 limbas=1 52 limhau=klev 53 53 54 DO k = 1, klev 54 55 DO i = 1, klon … … 56 57 d_ufi(i,k) = 0.0 57 58 d_vfi(i,k) = 0.0 58 59 d_qfi(i,k,:) = 0.0 59 60 zu(i,k) = ufi(i,k) 60 61 zv(i,k) = vfi(i,k) 61 62 zq(i,k,:) = qfi(i,k,:) 62 63 ENDDO 63 64 ENDDO … … 119 120 zum=0. 120 121 zvm=0. 121 122 zqm=0. 122 123 DO k = k1, k2 123 124 zalpha=zalpha+ABS(zh(i,k)-hm)*zdp(i,k) … … 125 126 zum=zum+ufi(i,k)*zdp(i,k) 126 127 zvm=zvm+vfi(i,k)*zdp(i,k) 127 128 129 128 do iq=1,nq 129 zqm(iq)=zqm(iq)+qfi(i,k,iq)*zdp(i,k) 130 enddo 130 131 ENDDO 131 132 zalpha=zalpha/(hm*(paprs(i,k1)-paprs(i,k2+1))) 132 133 zum=zum/(paprs(i,k1)-paprs(i,k2+1)) 133 134 zvm=zvm/(paprs(i,k1)-paprs(i,k2+1)) 134 135 136 135 do iq=1,nq 136 zqm(iq)=zqm(iq)/(paprs(i,k1)-paprs(i,k2+1)) 137 enddo 137 138 138 139 IF(zalpha.GT.1.) THEN … … 153 154 zv(i,k)=vfi(i,k)+zalpha*(zvm-vfi(i,k)) 154 155 do iq=1,nq 155 156 zq(i,k,iq)=qfi(i,k,iq)+zalpha*(zqm(iq)-qfi(i,k,iq)) 156 157 enddo 157 158 ENDDO … … 187 188 do iq=1,nq 188 189 d_qfi(i,k,iq) = 0.0 189 enddo 190 enddo 190 191 ENDDO 191 192 ENDDO … … 200 201 do iq=1,nq 201 202 d_qfi(i,k,iq) = 0.0 202 enddo 203 enddo 203 204 ENDDO 204 205 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.