Changeset 2787 for LMDZ5/branches/testing/libf/phylmd/alpale_th.F90
- Timestamp:
- Jan 30, 2017, 5:54:45 PM (8 years ago)
- Location:
- LMDZ5/branches/testing
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/branches/testing
- Property svn:mergeinfo changed
/LMDZ5/trunk merged: 2728,2730-2775,2777-2785
- Property svn:mergeinfo changed
-
LMDZ5/branches/testing/libf/phylmd/alpale_th.F90
r2594 r2787 38 38 REAL, DIMENSION(klon), INTENT(INOUT) :: alp_bl 39 39 REAL, DIMENSION(klon), INTENT(INOUT) :: alp_bl_stat 40 41 REAL, DIMENSION(klon), INTENT(OUT) :: proba_notrig, random_notrig 40 REAL, DIMENSION(klon), INTENT(INOUT) :: proba_notrig 41 42 REAL, DIMENSION(klon), INTENT(OUT) :: random_notrig 42 43 43 44 include "thermcell.h" … … 73 74 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 74 75 ! 76 !! 77 !! The following 3 lines should be commented if one wants to activate the 78 !! multiplication of no-trigger probabilities between calls to the convection 79 !! scheme. 80 !! 81 do i=1,klon 82 proba_notrig(i)=1. 83 enddo 84 !! 85 !! 75 86 !--------------------------------------- 76 87 IF (iflag_clos_bl .LT. 3) THEN … … 97 108 !----Initialisations 98 109 do i=1,klon 99 proba_notrig(i)=1.110 !!jyg proba_notrig(i)=1. 100 111 random_notrig(i)=1e6*ale_bl_stat(i)-int(1e6*ale_bl_stat(i)) 101 112 if ( random_notrig(i) > random_notrig_max ) random_notrig(i)=0. … … 120 131 do i=1,klon 121 132 if ( (ale_bl_stat(i) .gt. abs(cin(i))+1.e-10) ) then 122 proba_notrig(i)= (1.-exp(-s_trig/s2(i)))** &123 133 proba_notrig(i)=proba_notrig(i)* & 134 (1.-exp(-s_trig/s2(i)))**(n2(i)*dtime/tau_trig(i)) 124 135 ! print *, 'proba_notrig(i) ',proba_notrig(i) 125 136 if (random_notrig(i) .ge. proba_notrig(i)) then … … 129 140 endif 130 141 else 131 proba_notrig(i)=1.142 !!jyg proba_notrig(i)=1. 132 143 random_notrig(i)=0. 133 144 ale_bl_trig(i)=0. … … 139 150 do i=1,klon 140 151 if ( (Ale_bl(i) .gt. abs(cin(i))+1.e-10) ) then 141 proba_notrig(i)= (1.-exp(-s_trig/s2(i)))** &142 152 proba_notrig(i)=proba_notrig(i)* & 153 (1.-exp(-s_trig/s2(i)))**(n2(i)*dtime/tau_trig(i)) 143 154 ! print *, 'proba_notrig(i) ',proba_notrig(i) 144 155 if (random_notrig(i) .ge. proba_notrig(i)) then … … 148 159 endif 149 160 else 150 proba_notrig(i)=1.161 !!jyg proba_notrig(i)=1. 151 162 random_notrig(i)=0. 152 163 ale_bl_trig(i)=0. … … 223 234 !----Initializations and random number generation 224 235 do i=1,klon 225 proba_notrig(i)=1.236 !!jyg proba_notrig(i)=1. 226 237 random_notrig(i)=1e6*ale_bl_stat(i)-int(1e6*ale_bl_stat(i)) 227 238 if ( ale_bl_trig(i) .lt. abs(cin(i))+1.e-10 ) then … … 244 255 birth_number = n2(i)*exp(-s_trig/s2(i)) 245 256 birth_rate(i) = birth_number/(tau_trig(i)*cell_area(i)) 246 proba_notrig(i)= exp(-birth_number*dtime/tau_trig(i))257 proba_notrig(i)=proba_notrig(i)*exp(-birth_number*dtime/tau_trig(i)) 247 258 Alp_bl(i) = Alp_bl(i)* & 248 259 umexp(-birth_number*cv_feed_area/cell_area(i))/ & … … 250 261 tau_trig(i)*cv_feed_area/(dtime*cell_area(i)) 251 262 else 252 proba_notrig(i)=1.263 !!jyg proba_notrig(i)=1. 253 264 random_notrig(i)=0. 254 265 alp_bl(i)=0.
Note: See TracChangeset
for help on using the changeset viewer.