Changeset 3208 for LMDZ6/trunk/libf/phylmd/alpale_th.F90
- Timestamp:
- Feb 16, 2018, 12:42:18 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/alpale_th.F90
r3073 r3208 3 3 ale_bl_trig, ale_bl_stat, ale_bl, & 4 4 alp_bl, alp_bl_stat, & 5 proba_notrig, random_notrig) 5 proba_notrig, random_notrig, birth_rate, & 6 q_alp) 6 7 7 8 ! ************************************************************** … … 42 43 REAL, DIMENSION(klon), INTENT(OUT) :: random_notrig 43 44 45 REAL, DIMENSION(klon), INTENT(OUT) :: birth_rate 46 REAL, DIMENSION(klon), INTENT(OUT) :: q_alp 47 44 48 include "thermcell.h" 45 49 … … 53 57 REAL, DIMENSION(klon) :: ale_bl_ref 54 58 REAL, DIMENSION(klon) :: tau_trig 55 REAL, DIMENSION(klon) :: birth_rate56 59 ! 57 60 !$OMP THREADPRIVATE(random_notrig_max) … … 103 106 ! 104 107 IF (prt_level .GE. 10) THEN 105 print *,'cin, ale_bl_stat, alp_bl _stat ', &106 cin, ale_bl_stat, alp_bl _stat108 print *,'cin, ale_bl_stat, alp_bl, alp_bl_stat ', & 109 cin, ale_bl_stat, alp_bl, alp_bl_stat 107 110 ENDIF 108 111 … … 141 144 ale_bl_trig(i)=0. 142 145 endif 146 birth_rate(i) = n2(i)*exp(-s_trig/s2(i))/(tau_trig(i)*cell_area(i)) 147 !!! birth_rate(i) = max(birth_rate(i),1.e-18) 148 q_alp(i) = alp_bl(i)/max(birth_rate(i),1.e-18) 143 149 else 144 150 !!jyg proba_notrig(i)=1. 151 birth_rate(i) = 0. 145 152 random_notrig(i)=0. 146 153 ale_bl_trig(i)=0. 154 q_alp(i) = 0. 147 155 endif 148 156 enddo … … 160 168 ale_bl_trig(i)=0. 161 169 endif 170 birth_rate(i) = n2(i)*exp(-s_trig/s2(i))/(tau_trig(i)*cell_area(i)) 171 !!! birth_rate(i) = max(birth_rate(i),1.e-18) 172 q_alp(i) = alp_bl(i)/max(birth_rate(i),1.e-18) 162 173 else 163 174 !!jyg proba_notrig(i)=1. 175 birth_rate(i) = 0. 164 176 random_notrig(i)=0. 165 177 ale_bl_trig(i)=0. 178 q_alp(i) = 0. 166 179 endif 167 180 enddo … … 257 270 birth_number = n2(i)*exp(-s_trig/s2(i)) 258 271 birth_rate(i) = birth_number/(tau_trig(i)*cell_area(i)) 272 !!! birth_rate(i) = max(birth_rate(i),1.e-18) 259 273 proba_notrig(i)=proba_notrig(i)*exp(-birth_number*dtime/tau_trig(i)) 274 q_alp(i) = alp_bl(i)/max(birth_rate(i),1.e-18) 260 275 Alp_bl(i) = Alp_bl(i)* & 261 276 umexp(-birth_number*cv_feed_area/cell_area(i))/ & … … 264 279 else 265 280 !!jyg proba_notrig(i)=1. 281 birth_rate(i)=0. 266 282 random_notrig(i)=0. 267 283 alp_bl(i)=0. 284 q_alp(i) = 0. 268 285 endif 269 286 enddo … … 291 308 292 309 IF (prt_level .GE. 10) THEN 293 print *,'ale_bl_trig, alp_bl_stat ',ale_bl_trig, alp_bl_stat 310 print *,'alpale_th: ale_bl_trig, alp_bl_stat, birth_rate, q_alp ', & 311 ale_bl_trig(1), alp_bl_stat(1), birth_rate(1), q_alp(1) 294 312 ENDIF 295 313
Note: See TracChangeset
for help on using the changeset viewer.