Changeset 2406 for LMDZ5/trunk
- Timestamp:
- Dec 10, 2015, 6:55:45 PM (9 years ago)
- Location:
- LMDZ5/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/phylmd/thermcell_alim.F90
r2392 r2406 39 39 lalim(:)=1 40 40 alim_star_tot(:)=0. 41 42 IF (ngrid==1) PRINT*,'NEW ALIM flag=',flag43 41 44 42 !------------------------------------------------------------------------- … … 84 82 enddo 85 83 86 do l= 1,klev-184 do l=klev-1,1,-1 87 85 do ig=1,ngrid 88 86 ztv_parcel=ztv(ig,1)+d_temp(ig) 89 if (ztv_parcel<ztv(ig,l+1) .and. lalim(ig)==1 ) THEN 90 lalim(ig)=l 91 zi(ig)=zlay(ig,l)+(zlay(ig,l+1)-zlay(ig,l))/(ztv(ig,l+1)-ztv(ig,l))*(ztv_parcel-ztv(ig,l)) 92 IF (zi(ig)<0.) STOP 93 endif 87 if (ztv_parcel<ztv(ig,l+1)) lalim(ig)=l 94 88 enddo 95 89 enddo 90 91 do ig=1,ngrid 92 l=lalim(ig) 93 IF (l==1) THEN 94 zi(ig)=0. 95 ELSE 96 ztv_parcel=ztv(ig,1)+d_temp(ig) 97 zi(ig)=zlay(ig,l)+(zlay(ig,l+1)-zlay(ig,l))/(ztv(ig,l+1)-ztv(ig,l))*(ztv_parcel-ztv(ig,l)) 98 ENDIF 99 enddo 100 96 101 zh(:)=zi(:)/2. 97 102 alim_star_tot(:)=0. … … 100 105 do l=1,klev-1 101 106 do ig=1,ngrid 102 if (zlev(ig,l+1)<=zh(ig)) THEN 107 IF (zh(ig)==0.) THEN 108 alim_star(ig,l)=0. 109 lalim(ig)=1 110 ELSE IF (zlev(ig,l+1)<=zh(ig)) THEN 103 111 alim_star(ig,l)=(falim(zh(ig),zlev(ig,l+1))-falim(zh(ig),zlev(ig,l)))/falim(zh(ig),zh(ig)) 104 112 lalim(ig)=l … … 112 120 alim_star_tot(:)=alim_star_tot(:)+alim_star(:,l) 113 121 ENDDO 114 IF (ngrid==1) print*,'NEW ALIM CALCUL DE ZI ',alim_star_tot 122 IF (ngrid==1) print*,'NEW ALIM CALCUL DE ZI ',alim_star_tot,lalim,zi,zh 115 123 alim_star_tot(:)=1. 116 124 -
LMDZ5/trunk/libf/phylmd/thermcell_plume.F90
r2392 r2406 106 106 REAL,SAVE :: mix0,mix0_omp=0. 107 107 INTEGER,SAVE :: thermals_flag_alim,thermals_flag_alim_omp=0 108 109 !$OMP THREADPRIVATE(fact_epsilon, betalpha, afact, fact_shell) 110 !$OMP THREADPRIVATE(detr_min, entr_min, detr_q_coef, detr_q_power) 111 !$OMP THREADPRIVATE( mix0, thermals_flag_alim) 108 112 109 113 LOGICAL, SAVE :: first=.true. … … 144 148 mix0=mix0_omp 145 149 thermals_flag_alim=thermals_flag_alim_omp 150 146 151 first=.false. 147 152 ENDIF
Note: See TracChangeset
for help on using the changeset viewer.