Changeset 5055 for LMDZ6/branches/cirrus/libf/phylmdiso/physiq_mod.F90
- Timestamp:
- Jul 15, 2024, 10:42:14 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/cirrus/libf/phylmdiso/physiq_mod.F90
r4881 r5055 73 73 USE tracinca_mod, ONLY: config_inca 74 74 USE tropopause_m, ONLY: dyn_tropopause 75 USE ice_sursat_mod, ONLY: flight_init, airplane76 75 USE vampir 77 76 USE write_field_phy … … 192 191 ! [Variables internes non sauvegardees de la physique] 193 192 ! Variables locales pour effectuer les appels en serie 194 t_seri,q_seri,ql_seri,qs_seri,qbs_seri,u_seri,v_seri,tr_seri,rneb_seri, & 193 t_seri,q_seri,ql_seri,qs_seri,qbs_seri, & 194 u_seri,v_seri,cf_seri,rvc_seri,tr_seri, & 195 rhcl, & 195 196 ! Dynamic tendencies (diagnostics) 196 d_t_dyn,d_q_dyn,d_ql_dyn,d_qs_dyn,d_qbs_dyn,d_u_dyn,d_v_dyn,d_tr_dyn,d_rneb_dyn, & 197 d_t_dyn,d_q_dyn,d_ql_dyn,d_qs_dyn,d_qbs_dyn, & 198 d_u_dyn,d_v_dyn,d_cf_dyn,d_rvc_dyn,d_tr_dyn, & 197 199 d_q_dyn2d,d_ql_dyn2d,d_qs_dyn2d,d_qbs_dyn2d, & 198 200 ! Physic tendencies … … 271 273 JrNt, & 272 274 dthmin, evap, snowerosion,fder, plcl, plfc, & 273 prw, prlw, prsw, prbsw, 275 prw, prlw, prsw, prbsw, water_budget, & 274 276 s_lcl, s_pblh, s_pblt, s_therm, & 275 277 cdragm, cdragh, & … … 346 348 pfraclr,pfracld, & 347 349 distcltop,temp_cltop, & 348 zqsatl, zqsats, & 349 qclr, qcld, qss, qvc, rnebclr, rnebss, gamma_ss, & 350 !-- LSCP - condensation and ice supersaturation variables 351 qsub, qissr, qcld, subfra, issrfra, gamma_cond, ratio_qi_qtot, & 352 dcf_sub, dcf_con, dcf_mix, dqi_adj, dqi_sub, dqi_con, dqi_mix, & 353 dqvc_adj, dqvc_sub, dqvc_con, dqvc_mix, qsatliq, qsatice, & 354 !-- LSCP - aviation and contrails variables 350 355 Tcontr, qcontr, qcontr2, fcontrN, fcontrP, & 356 dcf_avi, dqi_avi, dqvc_avi, flight_dist, flight_h2o, & 357 ! 351 358 cldemi, & 352 359 cldfra, cldtau, fiwc, & … … 359 366 t2m, fluxlat, & 360 367 fsollw, evap_pot, & 361 fsolsw, wfbils, wfevap, &368 fsolsw, wfbils, wfevap, & 362 369 prfl, psfl,bsfl, fraca, Vprecip, & 363 370 zw2, & … … 373 380 rneb, & 374 381 zxsnow,snowhgt,qsnow,to_ice,sissnow,runoff,albsol3_lic, & 375 zxfluxt,zxfluxq 382 zxfluxt,zxfluxq 376 383 377 384 … … 549 556 ! 550 557 ! indices de traceurs eau vapeur, liquide, glace, fraction nuageuse LS (optional), blowing snow (optional) 551 INTEGER,SAVE :: ivap, iliq, isol, i rneb, ibs552 !$OMP THREADPRIVATE(ivap, iliq, isol, i rneb, ibs)558 INTEGER,SAVE :: ivap, iliq, isol, ibs, icf, irvc 559 !$OMP THREADPRIVATE(ivap, iliq, isol, ibs, icf, irvc) 553 560 ! 554 561 ! … … 921 928 ! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! 922 929 ! 923 REAL rhcl(klon,klev) ! humiditi relative ciel clair930 ! REAL rhcl(klon,klev) ! humiditi relative ciel clair 924 931 REAL dialiq(klon,klev) ! eau liquide nuageuse 925 932 REAL diafra(klon,klev) ! fraction nuageuse … … 1407 1414 iliq = strIdx(tracers(:)%name, addPhase('H2O', 'l')) 1408 1415 isol = strIdx(tracers(:)%name, addPhase('H2O', 's')) 1409 irneb= strIdx(tracers(:)%name, addPhase('H2O', 'r'))1410 1416 ibs = strIdx(tracers(:)%name, addPhase('H2O', 'b')) 1411 CALL init_etat0_limit_unstruct 1417 icf = strIdx(tracers(:)%name, addPhase('H2O', 'f')) 1418 irvc = strIdx(tracers(:)%name, addPhase('H2O', 'c')) 1419 ! CALL init_etat0_limit_unstruct 1412 1420 IF (.NOT. create_etat0_limit) CALL init_limit_read(days_elapsed) 1413 1421 !CR:nvelles variables convection/poches froides … … 1454 1462 ENDIF 1455 1463 1456 IF (ok_ice_su rsat.AND.(iflag_ice_thermo.EQ.0)) THEN1457 WRITE (lunout, *) ' ok_ice_su rsat=y requires iflag_ice_thermo=1 as well'1464 IF (ok_ice_supersat.AND.(iflag_ice_thermo.EQ.0)) THEN 1465 WRITE (lunout, *) ' ok_ice_supersat=y requires iflag_ice_thermo=1 as well' 1458 1466 abort_message='see above' 1459 1467 CALL abort_physic(modname,abort_message,1) 1460 1468 ENDIF 1461 1469 1462 IF (ok_ice_su rsat.AND.(nqo.LT.4)) THEN1463 WRITE (lunout, *) ' ok_ice_su rsat=y requires 4H2O tracers ', &1464 '(H2O_g, H2O_l, H2O_s, H2O_ r) but nqo=', nqo, '. Might as well stop here.'1470 IF (ok_ice_supersat.AND.(nqo.LT.5)) THEN 1471 WRITE (lunout, *) ' ok_ice_supersat=y requires 5 H2O tracers ', & 1472 '(H2O_g, H2O_l, H2O_s, H2O_f, H2O_c) but nqo=', nqo, '. Might as well stop here.' 1465 1473 abort_message='see above' 1466 1474 CALL abort_physic(modname,abort_message,1) 1467 1475 ENDIF 1468 1476 1469 IF (ok_plane_h2o.AND..NOT.ok_ice_su rsat) THEN1470 WRITE (lunout, *) ' ok_plane_h2o=y requires ok_ice_su rsat=y '1477 IF (ok_plane_h2o.AND..NOT.ok_ice_supersat) THEN 1478 WRITE (lunout, *) ' ok_plane_h2o=y requires ok_ice_supersat=y ' 1471 1479 abort_message='see above' 1472 1480 CALL abort_physic(modname,abort_message,1) 1473 1481 ENDIF 1474 1482 1475 IF (ok_plane_contrail.AND..NOT.ok_ice_su rsat) THEN1476 WRITE (lunout, *) ' ok_plane_contrail=y requires ok_ice_su rsat=y '1483 IF (ok_plane_contrail.AND..NOT.ok_ice_supersat) THEN 1484 WRITE (lunout, *) ' ok_plane_contrail=y requires ok_ice_supersat=y ' 1477 1485 abort_message='see above' 1478 1486 CALL abort_physic(modname,abort_message,1) … … 1482 1490 abort_message='blowing snow cannot be activated with water isotopes yet' 1483 1491 CALL abort_physic(modname,abort_message, 1) 1484 IF ((ok_ice_su rsat.AND.nqo .LT.5).OR.(.NOT.ok_ice_sursat.AND.nqo.LT.4)) THEN1492 IF ((ok_ice_supersat.AND.nqo .LT.6).OR.(.NOT.ok_ice_supersat.AND.nqo.LT.4)) THEN 1485 1493 WRITE (lunout, *) 'activation of blowing snow needs a specific H2O tracer', & 1486 1494 'but nqo=', nqo … … 1950 1958 & RG,RD,RCPD,RKAPPA,RLVTT,RETV) 1951 1959 CALL ratqs_ini(klon,klev,iflag_thermals,lunout,nbsrf,is_lic,is_ter,RG,RV,RD,RCPD,RLSTT,RLVTT,RTT) 1952 CALL lscp_ini(pdtphys,lunout,prt_level,ok_ice_sursat,iflag_ratqs,fl_cor_ebil,RCPD,RLSTT,RLVTT,RLMLT,RVTMP2,RTT,RD,RG,RPI) 1960 CALL lscp_ini(pdtphys,lunout,prt_level,ok_ice_supersat,iflag_ratqs,fl_cor_ebil, & 1961 RCPD,RLSTT,RLVTT,RLMLT,RVTMP2,RTT,RD,RV,RG,RPI,EPS_W) 1953 1962 CALL blowing_snow_ini(RCPD, RLSTT, RLVTT, RLMLT, & 1954 1963 RVTMP2, RTT,RD,RG, RV, RPI) … … 2001 2010 ptconv, read_climoz, clevSTD, & 2002 2011 ptconvth, d_u, d_t, qx, d_qx, zmasse, & 2003 flag_aerosol, flag_aerosol_strat, ok_cdnc, t,u1,v1)2012 flag_aerosol, flag_aerosol_strat, ok_cdnc, t, u1, v1) 2004 2013 #endif 2005 2014 … … 2434 2443 sollwdown(:)) 2435 2444 2445 !--Init for LSCP - condensation 2446 ratio_qi_qtot(:,:) = 0. 2436 2447 2437 2448 … … 2540 2551 q_seri(i,k) = qx(i,k,ivap) 2541 2552 ql_seri(i,k) = qx(i,k,iliq) 2542 qbs_seri(i,k) = 0. 2553 qbs_seri(i,k)= 0. 2554 cf_seri(i,k) = 0. 2555 rvc_seri(i,k)= 0. 2543 2556 !CR: ATTENTION, on rajoute la variable glace 2544 2557 IF (nqo.EQ.2) THEN !--vapour and liquid only 2545 2558 qs_seri(i,k) = 0. 2546 rneb_seri(i,k) = 0.2547 2559 ELSE IF (nqo.EQ.3) THEN !--vapour, liquid and ice 2548 2560 qs_seri(i,k) = qx(i,k,isol) 2549 rneb_seri(i,k) = 0. 2550 ELSE IF (nqo.GE.4) THEN !--vapour, liquid, ice and rneb and blowing snow 2561 ELSE IF (nqo.GE.4) THEN !--vapour, liquid, ice, blowing snow, cloud fraction and cloudy water vapor to total water vapor ratio 2551 2562 qs_seri(i,k) = qx(i,k,isol) 2552 IF (ok_ice_sursat) THEN 2553 rneb_seri(i,k) = qx(i,k,irneb) 2563 IF (ok_ice_supersat) THEN 2564 cf_seri(i,k) = qx(i,k,icf) 2565 rvc_seri(i,k) = qx(i,k,irvc) 2554 2566 ENDIF 2555 2567 IF (ok_bs) THEN 2556 qbs_seri(i,k)= qx(i,k,ibs)2568 qbs_seri(i,k)= qx(i,k,ibs) 2557 2569 ENDIF 2558 2559 2570 ENDIF 2560 2561 2562 2571 ENDDO 2563 2572 ENDDO … … 2717 2726 d_ql_dyn(:,:) = (ql_seri(:,:)-ql_ancien(:,:))/phys_tstep 2718 2727 d_qs_dyn(:,:) = (qs_seri(:,:)-qs_ancien(:,:))/phys_tstep 2719 d_qbs_dyn(:,:) = (qbs_seri(:,:)-qbs_ancien(:,:))/phys_tstep 2728 d_qbs_dyn(:,:)= (qbs_seri(:,:)-qbs_ancien(:,:))/phys_tstep 2729 d_cf_dyn(:,:) = (cf_seri(:,:)-cf_ancien(:,:))/phys_tstep 2730 d_rvc_dyn(:,:)= (rvc_seri(:,:)-rvc_ancien(:,:))/phys_tstep 2720 2731 CALL water_int(klon,klev,q_seri,zmasse,zx_tmp_fi2d) 2721 2732 d_q_dyn2d(:)=(zx_tmp_fi2d(:)-prw_ancien(:))/phys_tstep … … 2729 2740 IF (nqtot > nqo) d_tr_dyn(:,:,:)=(tr_seri(:,:,:)-tr_ancien(:,:,:))/phys_tstep 2730 2741 ! !! RomP <<< 2731 !!d_rneb_dyn(:,:)=(rneb_seri(:,:)-rneb_ancien(:,:))/phys_tstep2732 d_rneb_dyn(:,:)=0.02733 2742 2734 2743 #ifdef ISO … … 2809 2818 d_ql_dyn(:,:) = 0.0 2810 2819 d_qs_dyn(:,:) = 0.0 2820 d_qbs_dyn(:,:)= 0.0 2821 d_cf_dyn(:,:) = 0.0 2822 d_rvc_dyn(:,:)= 0.0 2811 2823 d_q_dyn2d(:) = 0.0 2812 2824 d_ql_dyn2d(:) = 0.0 … … 2835 2847 IF (nqtot > nqo) d_tr_dyn(:,:,:)= 0.0 2836 2848 ! !! RomP <<< 2837 d_rneb_dyn(:,:)=0.02838 d_qbs_dyn(:,:)=0.02839 2849 ancien_ok = .TRUE. 2840 2850 ENDIF … … 2944 2954 ! "zmasse" changes a little.) 2945 2955 ENDIF 2956 ENDIF 2957 2958 !-- Needed for LSCP - condensation and ice supersaturation 2959 IF (ok_ice_supersat) THEN 2960 DO k = 1, klev 2961 DO i = 1, klon 2962 IF ( ( q_seri(i,k) + ql_seri(i,k) + qs_seri(i,k) ) .GT. 0. ) THEN 2963 ratio_qi_qtot(i,k) = qs_seri(i,k) / ( q_seri(i,k) + ql_seri(i,k) + qs_seri(i,k) ) 2964 rvc_seri(i,k) = rvc_seri(i,k) * q_seri(i,k) / ( q_seri(i,k) + ql_seri(i,k) + qs_seri(i,k) ) 2965 ELSE 2966 ratio_qi_qtot(i,k) = 0. 2967 rvc_seri(i,k) = 0. 2968 ENDIF 2969 ENDDO 2970 ENDDO 2946 2971 ENDIF 2947 2972 … … 4872 4897 4873 4898 !--mise à jour de flight_m et flight_h2o dans leur module 4874 IF (ok_plane_h2o .OR. ok_plane_contrail) THEN4875 CALL airplane(debut,pphis,pplay,paprs,t_seri)4876 ENDIF4899 !IF (ok_plane_h2o .OR. ok_plane_contrail) THEN 4900 ! CALL airplane(debut,pphis,pplay,paprs,t_seri) 4901 !ENDIF 4877 4902 4878 4903 CALL lscp(klon,klev,phys_tstep,missing_val,paprs,pplay, & 4879 4904 t_seri, q_seri,ptconv,ratqs, & 4880 d_t_lsc, d_q_lsc, d_ql_lsc, d_qi_lsc, rneb, rneblsvol, rneb_seri,&4905 d_t_lsc, d_q_lsc, d_ql_lsc, d_qi_lsc, rneb, rneblsvol, & 4881 4906 pfraclr,pfracld, & 4882 4907 radocond, picefra, rain_lsc, snow_lsc, & … … 4884 4909 prfl, psfl, rhcl, & 4885 4910 zqasc, fraca,ztv,zpspsk,ztla,zthl,iflag_cld_th, & 4886 iflag_ice_thermo, ok_ice_sursat, zqsatl, zqsats, distcltop, temp_cltop, & 4887 qclr, qcld, qss, qvc, rnebclr, rnebss, gamma_ss, & 4888 Tcontr, qcontr, qcontr2, fcontrN, fcontrP , & 4911 iflag_ice_thermo, distcltop, temp_cltop, cell_area, & 4912 cf_seri, rvc_seri, u_seri, v_seri, pbl_eps(:,:,is_ave), & 4913 qsub, qissr, qcld, subfra, issrfra, gamma_cond, ratio_qi_qtot, & 4914 dcf_sub, dcf_con, dcf_mix, dqi_adj, dqi_sub, dqi_con, dqi_mix, & 4915 dqvc_adj, dqvc_sub, dqvc_con, dqvc_mix, qsatliq, qsatice, & 4916 Tcontr, qcontr, qcontr2, fcontrN, fcontrP, & 4917 dcf_avi, dqi_avi, dqvc_avi, flight_dist, flight_h2o, & 4889 4918 cloudth_sth,cloudth_senv,cloudth_sigmath,cloudth_sigmaenv, & 4890 4919 qraindiag, qsnowdiag, dqreva, dqssub, dqrauto, dqrcol, dqrmelt, & … … 6823 6852 d_qx(i,k,isol) = ( qs_seri(i,k) - qx(i,k,isol) ) / phys_tstep 6824 6853 ENDIF 6825 !--ice_sursat: nqo=4, on ajoute rneb 6826 IF (nqo.ge.4 .and. ok_ice_sursat) THEN 6827 d_qx(i,k,irneb) = ( rneb_seri(i,k) - qx(i,k,irneb) ) / phys_tstep 6854 !--ice_supersat: nqo=5, we add cloud fraction and cloudy water vapor to total water vapor ratio 6855 IF (nqo.ge.5 .and. ok_ice_supersat) THEN 6856 d_qx(i,k,icf) = ( cf_seri(i,k) - qx(i,k,icf) ) / phys_tstep 6857 d_qx(i,k,irvc) = ( rvc_seri(i,k) - qx(i,k,irvc) ) / phys_tstep 6828 6858 ENDIF 6829 6859 … … 6831 6861 d_qx(i,k,ibs) = ( qbs_seri(i,k) - qx(i,k,ibs) ) / phys_tstep 6832 6862 ENDIF 6833 6834 6863 6835 6864 ENDDO … … 6926 6955 ql_ancien(:,:) = ql_seri(:,:) 6927 6956 qs_ancien(:,:) = qs_seri(:,:) 6928 qbs_ancien(:,:) = qbs_seri(:,:) 6929 rneb_ancien(:,:) = rneb_seri(:,:) 6957 qbs_ancien(:,:)= qbs_seri(:,:) 6958 cf_ancien(:,:) = cf_seri(:,:) 6959 rvc_ancien(:,:)= rvc_seri(:,:) 6930 6960 #ifdef ISO 6931 6961 xt_ancien(:,:,:)=xt_seri(:,:,:)
Note: See TracChangeset
for help on using the changeset viewer.