Changeset 3754
- Timestamp:
- May 5, 2025, 5:23:50 PM (7 weeks ago)
- Location:
- trunk
- Files:
-
- 7 added
- 6 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/LMDZ.MARS/libf/phymars/sugwd.F90 ¶
r2651 r3754 1 1 SUBROUTINE SUGWD(nlayer,sigtest) 2 ! ============================================================================== 3 ! Initialize common variables in yoegwd.h to control the orographic 4 ! gra ivty wave drag parameterization. That means, all the tunable parameters2 ! ============================================================================== 3 ! Initialize common variables in yoegwd.h to control the orographic 4 ! gravity wave drag parameterization. That means, all the tunable parameters 5 5 ! for oro-GW scheme are in this subroutine. 6 6 ! MARTIN MILLER *ECMWF* ORIGINAL : 90-01-01 -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/callkeys_mod.F90 ¶
r3684 r3754 4 4 logical,save :: callrad,corrk,calldifv,UseTurbDiff 5 5 !$OMP THREADPRIVATE(callrad,corrk,calldifv,UseTurbDiff) 6 logical,save :: calladj,calltherm,n2cond,callsoil 7 !$OMP THREADPRIVATE(calladj,calltherm,n2cond,callsoil )6 logical,save :: calladj,calltherm,n2cond,callsoil,calllott 7 !$OMP THREADPRIVATE(calladj,calltherm,n2cond,callsoil,calllott) 8 8 logical,save :: callconduct,callmolvis,callmoldiff 9 9 !$OMP THREADPRIVATE(callconduct,callmolvis,callmoldiff) … … 199 199 real,save :: deltap ! width of transition to alpha_top (Pa) 200 200 !$OMP THREADPRIVATE(alpha_top,pref,deltap) 201 201 202 202 !! Microphysics-specific variables 203 203 logical,save :: callmufi, call_haze_prod_pCH4 -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/dimphy.F90 ¶
r3184 r3754 1 1 MODULE dimphy 2 2 3 3 INTEGER,SAVE :: klon ! number of atmospheric columns (for this OpenMP subgrid) 4 4 INTEGER,SAVE :: klev ! number of atmospheric layers, read by master … … 6 6 INTEGER,SAVE :: klevm1 ! number of atmospheric layers-1, read by master 7 7 ! INTEGER,SAVE :: kflev 8 integer,save :: ndomainsz !=(ngrid-1)/20 + 1 8 9 9 10 !$OMP THREADPRIVATE(klon) 10 11 11 12 CONTAINS 12 13 13 14 SUBROUTINE Init_dimphy(klon0,klev0) 14 15 IMPLICIT NONE 15 16 16 17 INTEGER, INTENT(in) :: klon0 17 18 INTEGER, INTENT(in) :: klev0 18 19 19 20 klon=klon0 20 21 !$OMP MASTER 21 22 !$OMP MASTER 22 23 klev=klev0 23 24 klevp1=klev+1 24 25 klevm1=klev-1 25 26 ! kflev=klev 26 !$OMP END MASTER 27 !$OMP END MASTER 27 28 !$OMP BARRIER 28 29 29 30 END SUBROUTINE Init_dimphy 30 31 31 32 32 33 END MODULE dimphy -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/inifis_mod.F90 ¶
r3749 r3754 355 355 if (is_master) write(*,*) trim(rname)//": callsoil = ",callsoil 356 356 357 calllott=.true. ! default value 358 call getin_p("calllott",calllott) 359 write(*,*)" calllott = ",calllott 360 357 361 if (is_master) write(*,*)trim(rname)//& 358 362 ": Rad transfer is computed every iradia", & -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/phys_state_var_mod.F90 ¶
r3627 r3754 9 9 !====================================================================== 10 10 ! Declaration des variables 11 USE dimphy, only : klon,klev 11 USE dimphy, only : klon,klev,ndomainsz 12 12 USE comsoil_h, only : nsoilmx 13 13 use comsaison_h, only: mu0, fract … … 117 117 !rugoro(:) ! longueur de rugosite de l'OESM 118 118 119 ndomainsz=(klon-1)/20 + 1 119 120 ALLOCATE(phisfi(klon)) 120 121 ALLOCATE(tsurf(klon)) -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/physiq_mod.F90 ¶
r3750 r3754 44 44 obliquit, z0, adjust, tpal 45 45 use comcstfi_mod, only: pi, g, rcp, r, rad, mugaz, cpp 46 use calldrag_noro_mod, only: calldrag_noro 46 47 use time_phylmdz_mod, only: daysec 47 48 use callkeys_mod, only: albedo_spectral_mode, calladj, calldifv, & 48 call rad, callsoil, nosurf,&49 calllott, callrad, callsoil, nosurf, & 49 50 callconduct,callmolvis,callmoldiff, & 50 51 corrk, & … … 117 118 ! II.2.b Option 2 : Atmosphere has no radiative effect. 118 119 ! 120 ! II.3 Gravity wave and subgrid scale topography drag : 121 ! 119 122 ! III. Vertical diffusion (turbulent mixing) 120 123 ! … … 385 388 real zdhdif(ngrid,nlayer) ! Turbdiff/vdifc routines. 386 389 real zdhadj(ngrid,nlayer) ! Convadj routine. 390 REAL zdtgw(ngrid,nlayer) ! Gravity waves (K/s) 391 REAL zdugw(ngrid,nlayer),zdvgw(ngrid,nlayer) ! Gravity waves (m.s-2) 387 392 REAL zdvc(ngrid,nlayer),zduc(ngrid,nlayer) ! condense_n2 routine. 388 393 … … 1143 1148 endif 1144 1149 1150 1151 !----------------------------------------------------------------------- 1152 ! II.3 Gravity wave and subgrid scale topography drag : 1153 ! ------------------------------------------------- 1154 1155 IF(calllott)THEN 1156 CALL calldrag_noro(ngrid,nlayer,ptimestep, & 1157 zplay,zplev,pt,pu,pv,zdtgw,zdugw,zdvgw) 1158 1159 DO l=1,nlayer 1160 DO ig=1,ngrid 1161 pdv(ig,l)=pdv(ig,l)+zdvgw(ig,l) 1162 pdu(ig,l)=pdu(ig,l)+zdugw(ig,l) 1163 pdt(ig,l)=pdt(ig,l)+zdtgw(ig,l) 1164 ENDDO 1165 ENDDO 1166 ENDIF 1167 1168 1145 1169 ! -------------------------------------------- 1146 1170 ! III. Vertical diffusion (turbulent mixing) : -
TabularUnified trunk/LMDZ.PLUTO/libf/phypluto/sugwd.F90 ¶
r3753 r3754 1 1 SUBROUTINE SUGWD(nlayer,sigtest) 2 ! ============================================================================== 3 ! Initialize common variables in yoegwd.h to control the orographic 4 ! gra ivty wave drag parameterization. That means, all the tunable parameters2 ! ============================================================================== 3 ! Initialize common variables in yoegwd.h to control the orographic 4 ! gravity wave drag parameterization. That means, all the tunable parameters 5 5 ! for oro-GW scheme are in this subroutine. 6 ! MARTIN MILLER *ECMWF* ORIGINAL : 90-01-01 6 ! MARTIN MILLER *ECMWF* ORIGINAL : 90-01-01 7 7 ! Update: Jiandong Liu 2022/03/15 Rewirite into .F90 and 8 ! comment. 8 ! comment. 9 9 ! REFERENCE. 10 10 ! ---------- … … 20 20 implicit none 21 21 22 ! 0.1 Inputs: 22 ! 0.1 Inputs: 23 23 integer,intent(in):: nlayer ! Number of model levels 24 24 REAL,intent(in):: sigtest(nlayer+1) ! Vertical coordinate table … … 33 33 integer jk 34 34 35 !------------------------------------------------------------------------------- 36 ! 1. Set the values of the parameters 37 !------------------------------------------------------------------------------- 35 !------------------------------------------------------------------------------- 36 ! 1. Set the values of the parameters 37 !------------------------------------------------------------------------------- 38 38 ! PRINT *,' Dans sugwd nlayer=',nlayer,' SIG=',sigtest 39 39 GHMAX=10000. 40 40 41 41 ! old ZSIGT=0.94 42 42 ! old ZPR=80000. 43 43 ZSIGT=0.85 ! Sigmal levels 44 44 ZPR=100000. ! Surface (Reference) Pressure? 45 45 46 46 ! ! Condition to find NKTOPG layer, which NKTOPG is a condition to set 47 47 ! 1*pvar and 2*pvar layers (OROSETUP) … … 49 49 ZPM1R=0.5*ZPR*(sigtest(JK)+sigtest(JK+1)) 50 50 IF((ZPM1R/ZPR).GE.ZSIGT)THEN 51 NKTOPG=JK 51 NKTOPG=JK 52 52 ENDIF 53 53 ENDDO 54 54 WRITE(*,*) 'In sugwd NKTOPG=',NKTOPG 55 56 GSIGCR=0.80 ! Sigmal levels to found the top of low level flow height (OROSETUP) 55 56 GSIGCR=0.80 ! Sigmal levels to found the top of low level flow height (OROSETUP) 57 57 GKDRAG= 0.1 ! used to be 0.1 for mcd Version 1 and 2 (before 10/2000) (OROSETUP) 58 58 59 59 GFRCRIT=1.0 60 60 GKWAKE=1.0 ! The G in equation (16) 61 GRCRIT=0.25 ! Critical value for Mean flow richardson number(OROSETUP) 61 GRCRIT=0.25 ! Critical value for Mean flow richardson number(OROSETUP) 62 62 GKDRAGL=4.*GKDRAG 63 63 GRAHILO=1. 64 GVCRIT =0.0 65 !------------------------------------------------------------------------------- 66 ! 2. Set values of security parameters 67 !------------------------------------------------------------------------------- 64 GVCRIT =0.0 65 !------------------------------------------------------------------------------- 66 ! 2. Set values of security parameters 67 !------------------------------------------------------------------------------- 68 68 GVSEC=0.10 ! Security values for For normal wind (pu^2+pv^2)^0.5(OROSETUP,GWSTRESS) 69 GSSEC=1.E-12 ! Security values for Brunt–Väisälä frequency N^2 (OROSETUP) 69 GSSEC=1.E-12 ! Security values for Brunt–Väisälä frequency N^2 (OROSETUP) 70 70 GTSEC=1.E-07 ! Security values for Sub-grid scale anisotropy(OROSETUP,GWSTRESS) 71 71
Note: See TracChangeset
for help on using the changeset viewer.