Changeset 4040 for LMDZ6/trunk/libf
- Timestamp:
- Dec 1, 2021, 10:28:05 AM (3 years ago)
- Location:
- LMDZ6/trunk/libf/phylmdiso
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmdiso/phyetat0.F90
r4036 r4040 21 21 solsw, solswfdiff, t_ancien, u_ancien, v_ancien, w01, wake_cstar, wake_deltaq, & 22 22 wake_deltat, wake_delta_pbl_TKE, delta_tsurf, beta_aridity, wake_fip, wake_pe, & 23 wake_s, wake_dens, zgam, zmax0, zmea, zpic, zsig, &23 wake_s, wake_dens, awake_dens, cv_gen, zgam, zmax0, zmea, zpic, zsig, & 24 24 #ifdef ISO 25 25 fxtevap, xtsol, xt_ancien, xtl_ancien, xts_ancien, wake_deltaxt, & … … 442 442 !! found=phyetat0_get(1,wake_dens,"WAKE_DENS","Wake num. /unit area",0.) 443 443 found=phyetat0_get(1,wake_dens,"WAKE_DENS","Wake num. /unit area",-1000.) 444 found=phyetat0_get(1,awake_dens,"AWAKE_DENS","Active Wake num. /unit area",0.) 445 found=phyetat0_get(1,cv_gen,"CV_GEN","CB birth rate",0.) 444 446 !>jyg 445 447 found=phyetat0_get(1,wake_cstar,"WAKE_CSTAR","WAKE_CSTAR",0.) … … 463 465 ! fisrtilp/Clouds 0.002 could be ratqsbas. But can stay like this as well 464 466 found=phyetat0_get(klev,ratqs_inter,"RATQS_INTER","Relative width of the lsc sugrid scale water",0.002) 465 466 467 467 468 !=========================================== … … 596 597 end where 597 598 end if 598 599 599 600 600 ! on ferme le fichier -
LMDZ6/trunk/libf/phylmdiso/phys_local_var_mod.F90
r4009 r4040 16 16 REAL, SAVE, ALLOCATABLE :: u_seri(:,:), v_seri(:,:) 17 17 !$OMP THREADPRIVATE(u_seri, v_seri) 18 REAL, SAVE, ALLOCATABLE :: l_mixmin(:,:,:), l_mix(:,:,:),tke_dissip(:,:,:), wprime(:,:,:)19 !$OMP THREADPRIVATE(l_mixmin, l_mix, tke_dissip, 18 REAL, SAVE, ALLOCATABLE :: l_mixmin(:,:,:),l_mix(:,:,:),tke_dissip(:,:,:), wprime(:,:,:) 19 !$OMP THREADPRIVATE(l_mixmin, l_mix, tke_dissip,wprime) 20 20 REAL, SAVE, ALLOCATABLE :: tr_seri(:,:,:) 21 21 !$OMP THREADPRIVATE(tr_seri) … … 465 465 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: proba_notrig, random_notrig 466 466 !$OMP THREADPRIVATE(proba_notrig, random_notrig) 467 REAL,ALLOCATABLE,SAVE,DIMENSION(:) :: cv_gen468 !$OMP THREADPRIVATE(cv_gen)469 467 REAL,ALLOCATABLE,SAVE,DIMENSION(:,:) :: fsolsw, wfbils, wfbilo 470 468 !$OMP THREADPRIVATE(fsolsw, wfbils, wfbilo) … … 693 691 ALLOCATE(t_seri(klon,klev),q_seri(klon,klev),ql_seri(klon,klev),qs_seri(klon,klev)) 694 692 ALLOCATE(u_seri(klon,klev),v_seri(klon,klev)) 695 ALLOCATE(l_mixmin(klon,klev+1,nbsrf), l_mix(klon,klev+1,nbsrf), tke_dissip(klon,klev+1,nbsrf),wprime(klon,klev+1,nbsrf))696 l_mix(:,:,:)=0. ; l_mixmin(:,:,:)=0. ; tke_dissip(:,:,:)=0. ;wprime(:,:,:)=0. ! doit etre initialse car pas toujours remplis693 ALLOCATE(l_mixmin(klon,klev+1,nbsrf),l_mix(klon,klev+1,nbsrf),tke_dissip(klon,klev+1,nbsrf),wprime(klon,klev+1,nbsrf)) 694 l_mix(:,:,:)=0.;l_mixmin(:,:,:)=0.;tke_dissip(:,:,:)=0.;wprime(:,:,:)=0. ! doit etre initialse car pas toujours remplis 697 695 698 696 ALLOCATE(tr_seri(klon,klev,nbtr)) … … 949 947 alp_bl_stat(:)=0 950 948 ALLOCATE(proba_notrig(klon), random_notrig(klon)) 951 ALLOCATE(cv_gen(klon))952 949 953 950 ALLOCATE(dnwd0(klon, klev)) … … 1090 1087 DEALLOCATE(t_seri,q_seri,ql_seri,qs_seri) 1091 1088 DEALLOCATE(u_seri,v_seri) 1092 DEALLOCATE(l_mixmin,l_mix, tke_dissip, 1089 DEALLOCATE(l_mixmin,l_mix, tke_dissip,wprime) 1093 1090 1094 1091 DEALLOCATE(tr_seri) … … 1311 1308 DEALLOCATE(alp_bl_stat, n2, s2) 1312 1309 DEALLOCATE(proba_notrig, random_notrig) 1313 DEALLOCATE(cv_gen)1314 1310 1315 1311 DEALLOCATE(dnwd0) -
LMDZ6/trunk/libf/phylmdiso/phys_output_write_mod.F90
r4036 r4040 246 246 wstar, cape, ema_pcb, ema_pct, & 247 247 ema_cbmf, Mipsh, Ma, fm_therm, ale_bl, alp_bl, ale, & 248 alp, cin, wake_pe, wake_dens, wake_s, wake_deltat, &248 alp, cin, wake_pe, wake_dens, cv_gen, wake_s, wake_deltat, & 249 249 wake_deltaq, ftd, fqd, ale_bl_trig, albsol1, & 250 250 ale_wake, ale_bl_stat, & … … 288 288 cdragh_x ,cdragh_w ,cdragm_x ,cdragm_w , & 289 289 kh ,kh_x ,kh_w , & 290 cv_gen,wake_h, &290 wake_h, & 291 291 wake_omg, d_t_wake, d_q_wake, Vprecip, qtaa, Clw, & 292 292 wdtrainA, wdtrainS, wdtrainM, n2, s2, proba_notrig, & … … 857 857 CALL histwrite_phy(o_u10m, zu10m) 858 858 CALL histwrite_phy(o_v10m, zv10m) 859 860 859 861 860 IF (vars_defined) THEN … … 1458 1457 CALL histwrite_phy(o_slab_bils, slab_wfbils) 1459 1458 IF (nslay.EQ.1) THEN 1460 zx_tmp_fi2d(:)=tslab(:,1)1459 IF (vars_defined) zx_tmp_fi2d(:)=tslab(:,1) 1461 1460 CALL histwrite_phy(o_tslab, zx_tmp_fi2d) 1462 zx_tmp_fi2d(:)=dt_qflux(:,1)1461 IF (vars_defined) zx_tmp_fi2d(:)=dt_qflux(:,1) 1463 1462 CALL histwrite_phy(o_slab_qflux, zx_tmp_fi2d) 1464 1463 ELSE … … 1476 1475 IF (slab_hdiff) THEN 1477 1476 IF (nslay.EQ.1) THEN 1478 zx_tmp_fi2d(:)=dt_hdiff(:,1)1477 IF (vars_defined) zx_tmp_fi2d(:)=dt_hdiff(:,1) 1479 1478 CALL histwrite_phy(o_slab_hdiff, zx_tmp_fi2d) 1480 1479 ELSE … … 1484 1483 IF (slab_ekman.GT.0) THEN 1485 1484 IF (nslay.EQ.1) THEN 1486 zx_tmp_fi2d(:)=dt_ekman(:,1)1485 IF (vars_defined) zx_tmp_fi2d(:)=dt_ekman(:,1) 1487 1486 CALL histwrite_phy(o_slab_ekman, zx_tmp_fi2d) 1488 1487 ELSE -
LMDZ6/trunk/libf/phylmdiso/phys_state_var_mod.F90
r3940 r4040 263 263 ! awake_dens : number of active wakes per unit area 264 264 ! wake_dens : number of wakes per unit area 265 ! cv_gen : birth rate of cumulonimbus per unit area. 265 266 ! wake_occ : occurence of wakes (= 1 if wakes occur, =0 otherwise) 266 267 ! wake_Cstar : vitesse d'etalement de la poche … … 279 280 REAL,ALLOCATABLE,SAVE :: awake_dens(:), wake_dens(:) 280 281 !$OMP THREADPRIVATE(awake_dens, wake_dens) 282 REAL,ALLOCATABLE,SAVE :: cv_gen(:) 283 !$OMP THREADPRIVATE(cv_gen) 281 284 REAL,ALLOCATABLE,SAVE :: wake_Cstar(:) 282 285 !$OMP THREADPRIVATE(wake_Cstar) … … 525 528 print*, 'allocate falb' 526 529 ALLOCATE(falb_dir(klon,nsw,nbsrf),falb_dif(klon,nsw,nbsrf)) 527 print*, 'allocate falb good', falb_dir(1,1,1)530 !! print*, 'allocate falb good', falb_dir(1,1,1) 528 531 ALLOCATE(chl_con(klon)) 529 532 !albedo SB <<< … … 623 626 ALLOCATE(wake_deltat(klon,klev), wake_deltaq(klon,klev)) 624 627 ALLOCATE(wake_s(klon), awake_dens(klon), wake_dens(klon)) 625 awake_dens = 0. 628 !! awake_dens = 0. ! initialized in phyetat0 629 ALLOCATE(cv_gen(klon)) 626 630 ALLOCATE(wake_Cstar(klon)) 627 631 ALLOCATE(wake_pe(klon), wake_fip(klon)) … … 795 799 DEALLOCATE(wake_deltat, wake_deltaq) 796 800 DEALLOCATE(wake_s, awake_dens, wake_dens) 801 DEALLOCATE(cv_gen) 797 802 DEALLOCATE(wake_Cstar, wake_pe, wake_fip) 798 803 !jyg< -
LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90
r4036 r4040 264 264 d_t_vdf_x, d_t_vdf_w, & 265 265 d_q_vdf_x, d_q_vdf_w, & 266 pbl_tke_input, tke_dissip, l_mix, wprime, 266 pbl_tke_input, tke_dissip, l_mix, wprime,& 267 267 t_therm, q_therm, u_therm, v_therm, & 268 268 cdragh_x, cdragh_w, & … … 291 291 alp_bl_stat, n2, s2, & 292 292 proba_notrig, random_notrig, & 293 cv_gen, & 293 !! cv_gen, & !moved to phys_state_var_mod 294 294 ! 295 295 dnwd0, &
Note: See TracChangeset
for help on using the changeset viewer.