Changeset 704 for LMDZ4/branches/V3_test/libf/phylmd/yamada4.F
- Timestamp:
- Aug 17, 2006, 5:41:51 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/branches/V3_test/libf/phylmd/yamada4.F
r541 r704 5 5 s ,zlev,zlay,u,v,teta,cd,q2,km,kn,kq,ustar 6 6 s ,iflag_pbl) 7 use dimphy 7 8 IMPLICIT NONE 8 9 c....................................................................... 9 #include "dimensions.h"10 #include "dimphy.h"10 cym#include "dimensions.h" 11 cym#include "dimphy.h" 11 12 c....................................................................... 12 13 c … … 64 65 65 66 integer nlay,nlev 66 PARAMETER (nlay=klev)67 PARAMETER (nlev=klev+1)67 cym PARAMETER (nlay=klev) 68 cym PARAMETER (nlev=klev+1) 68 69 69 70 logical first … … 71 72 save first,ipas 72 73 data first,ipas/.true.,0/ 73 74 c$OMP THREADPRIVATE( first,ipas) 74 75 75 76 integer ig,k … … 82 83 real dtetadz(klon,klev+1) 83 84 real m2cstat,mcstat,kmcstat 84 real l(klon,klev+1) ,l0(klon)85 save l086 85 real l(klon,klev+1) 86 real,allocatable,save :: l0(:) 87 c$OMP THREADPRIVATE(l0) 87 88 real sq(klon),sqz(klon),zz(klon,klev+1) 88 89 integer iter … … 91 92 save ric,rifc,b1,kap 92 93 data ric,rifc,b1,kap/0.195,0.191,16.6,0.4/ 93 94 c$OMP THREADPRIVATE(ric,rifc,b1,kap) 94 95 real frif,falpha,fsm 95 96 real fl,zzz,zl0,zq2,zn2 96 97 97 real rino(klon,klev+1),smyam(klon,klev),styam(klon,klev) 98 s ,lyam(klon,klev),knyam(klon,klev) 99 s ,w2yam(klon,klev),t2yam(klon,klev) 100 common/pbldiag/rino,smyam,styam,lyam,knyam,w2yam,t2yam 101 98 cym real rino(klon,klev+1),smyam(klon,klev),styam(klon,klev) 99 cym s ,lyam(klon,klev),knyam(klon,klev) 100 cym s ,w2yam(klon,klev),t2yam(klon,klev) 101 real,allocatable,save,dimension(:,:) :: rino,smyam,styam,lyam, 102 s knyam,w2yam,t2yam 103 cym common/pbldiag/rino,smyam,styam,lyam,knyam,w2yam,t2yam 104 c$OMP THREADPRIVATE(rino,smyam,styam,lyam,knyam,w2yam,t2yam) 105 logical,save :: firstcall=.true. 106 c$OMP THREADPRIVATE(firstcall) 102 107 frif(ri)=0.6588*(ri+0.1776-sqrt(ri*ri-0.3221*ri+0.03156)) 103 108 falpha(ri)=1.318*(0.2231-ri)/(0.2341-ri) … … 106 111 s max(min(l0(ig)*kap*zlev(ig,k)/(kap*zlev(ig,k)+l0(ig)) 107 112 s ,0.5*sqrt(q2(ig,k))/sqrt(max(n2(ig,k),1.e-10))) ,1.) 113 114 115 nlay=klev 116 nlev=klev+1 117 118 if (firstcall) then 119 allocate(rino(klon,klev+1),smyam(klon,klev),styam(klon,klev)) 120 allocate(lyam(klon,klev),knyam(klon,klev)) 121 allocate(w2yam(klon,klev),t2yam(klon,klev)) 122 allocate(l0(klon)) 123 firstcall=.false. 124 endif 125 108 126 109 127 if (.not.(iflag_pbl.ge.6.and.iflag_pbl.le.9)) then … … 378 396 379 397 c==================================================================== 380 c Calcul des coefficients de m élange398 c Calcul des coefficients de m�ange 381 399 c==================================================================== 382 400 do k=2,klev
Note: See TracChangeset
for help on using the changeset viewer.