Changeset 5099 for LMDZ6/branches/Amaury_dev/libf/phylmd/alpale_th.F90
- Timestamp:
- Jul 22, 2024, 9:29:09 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/alpale_th.F90
r5082 r5099 1 ! 1 2 2 ! $Id$ 3 ! 3 4 4 SUBROUTINE alpale_th ( dtime, lmax_th, t_seri, cell_area, & 5 5 cin, s2, n2, strig, & … … 20 20 USE ioipsl_getin_p_mod, ONLY : getin_p 21 21 USE print_control_mod, ONLY: mydebug=>debug , lunout, prt_level 22 ! 22 23 23 IMPLICIT NONE 24 24 … … 59 59 REAL, DIMENSION(klon) :: ale_bl_ref 60 60 REAL, DIMENSION(klon) :: tau_trig 61 ! 61 62 62 !$OMP THREADPRIVATE(multiply_proba_notrig) 63 63 !$OMP THREADPRIVATE(random_notrig_max) 64 64 !$OMP THREADPRIVATE(cv_feed_area) 65 65 !$OMP THREADPRIVATE(first) 66 ! 66 67 67 REAL umexp ! expression of (1.-exp(-x))/x valid for all x, especially when x->0 68 68 REAL x 69 ! 69 70 70 CHARACTER (LEN=20) :: modname='alpale_th' 71 71 CHARACTER (LEN=80) :: abort_message … … 75 75 !!! (1.-max(sign(1.,x-1.e-3),0.))*(-0.5*x*(1.-x/3.*(1.-0.25*x))) !!! bug introduced by mistake (jyg) 76 76 !!! (1.-max(sign(1.,x-1.e-3),0.))*(1.-0.5*x*(1.-x/3.*(1.-0.25*x))) !!! initial correct formula (jyg) 77 ! 77 78 78 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 79 79 ! JYG, 20160513 : Introduction of the Effective Lifting Power (ELP), which … … 83 83 ! zero. It is activated by iflag_clos_bl = 3. 84 84 ! The ELP values are stored in the ALP_bl variable. 85 ! 85 86 86 !+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 87 !88 87 89 88 IF (first) THEN … … 122 121 IF (iflag_clos_bl < 3) THEN 123 122 !--------------------------------------- 124 ! 123 125 124 ! Original code (Nicolas Rochetin) 126 125 ! -------------------------------- … … 128 127 !-----------Stochastic triggering----------- 129 128 if (iflag_trig_bl>=1) then 130 ! 129 131 130 IF (prt_level >= 10) THEN 132 131 WRITE(lunout,*)'cin, ale_bl_stat, alp_bl, alp_bl_stat ', & … … 146 145 endif 147 146 enddo 148 ! 147 149 148 IF (prt_level >= 10) THEN 150 149 WRITE(lunout,*)'random_notrig, tau_trig ', & … … 202 201 ENDIF 203 202 204 !205 203 IF (prt_level >= 10) THEN 206 204 WRITE(lunout,*)'proba_notrig, ale_bl_trig ', & … … 233 231 endif !(iflag_clos_bl) 234 232 235 !236 233 !--------------------------------------- 237 234 ELSEIF (iflag_clos_bl == 3) THEN ! (iflag_clos_bl .LT. 3) 238 235 !--------------------------------------- 239 ! 236 240 237 ! New code with Effective Lifting Power 241 238 ! ------------------------------------- … … 243 240 !-----------Stochastic triggering----------- 244 241 if (iflag_trig_bl>=1) then 245 ! 242 246 243 IF (prt_level >= 10) THEN 247 244 WRITE(lunout,*)'cin, ale_bl_stat, alp_bl_stat ', & … … 272 269 endif 273 270 enddo 274 ! 271 275 272 IF (prt_level >= 10) THEN 276 273 WRITE(lunout,*)'random_notrig, tau_trig ', & … … 308 305 enddo 309 306 310 !311 307 IF (prt_level >= 10) THEN 312 308 WRITE(lunout,*)'proba_notrig, ale_bl_trig ', & … … 326 322 327 323 !cc fin nrlmd le 10/04/2012 328 ! 324 329 325 !IM/FH: 2011/02/23 330 326 ! Couplage Thermiques/Emanuel seulement si T<0
Note: See TracChangeset
for help on using the changeset viewer.