source: trunk/LMDZ.PLUTO/libf/phypluto/sugwd.F90

Last change on this file was 3754, checked in by afalco, 8 months ago

Pluto: imported orographic gravity waves from Mars.
AF

File size: 2.9 KB
RevLine 
[2651]1      SUBROUTINE SUGWD(nlayer,sigtest)
[3754]2! ==============================================================================
3!     Initialize common variables in yoegwd.h to control the orographic
4!     gravity wave drag parameterization. That means, all the tunable parameters
[2651]5!     for oro-GW scheme are in this subroutine.
[3754]6!     MARTIN MILLER             *ECMWF*               ORIGINAL : 90-01-01
[2651]7!     Update:    Jiandong Liu     2022/03/15          Rewirite into .F90 and
[3754]8!                                                     comment.
[2651]9!     REFERENCE.
10!     ----------
11!     ECMWF Research Department documentation of the IFS
12!===============================================================================
13
14      USE yoegwd_h, ONLY: GFRCRIT, GRCRIT, GVCRIT
15      USE yoegwd_h, ONLY: GKDRAG, GKDRAGL, GHMAX
16      USE yoegwd_h, ONLY: GRAHILO, GSIGCR, GSSEC
17      USE yoegwd_h, ONLY: GTSEC, GVSEC, GKWAKE
18      USE yoegwd_h, ONLY: NKTOPG
19
[38]20      implicit none
21
[3754]22      ! 0.1 Inputs:
[2651]23      integer,intent(in):: nlayer                ! Number of model levels
24      REAL,intent(in):: sigtest(nlayer+1)        ! Vertical coordinate table
25
26      ! 0.2 Outputs:
27      ! None.
28
29      ! 0.3 Local variables
30      real zsigt                ! Top of the sigma coordinates?
31      real zpr                  ! Reference pressure ?
32      real zpm1r                ! Pressure at full layer ?
[38]33      integer jk
[2651]34
[3754]35!-------------------------------------------------------------------------------
36! 1.   Set the values of the parameters
37!-------------------------------------------------------------------------------
[2651]38!     PRINT *,' Dans sugwd nlayer=',nlayer,' SIG=',sigtest
[38]39      GHMAX=10000.
[3754]40
[2651]41!     old  ZSIGT=0.94
42!     old  ZPR=80000.
43      ZSIGT=0.85      ! Sigmal levels
44      ZPR=100000.     ! Surface (Reference) Pressure?
[3754]45
[2651]46      ! ! Condition to find NKTOPG layer, which NKTOPG is a condition to set
47      ! 1*pvar and 2*pvar layers (OROSETUP)
48      DO JK=1,nlayer-1
49         ZPM1R=0.5*ZPR*(sigtest(JK)+sigtest(JK+1))
[38]50         IF((ZPM1R/ZPR).GE.ZSIGT)THEN
[3754]51            NKTOPG=JK
[38]52         ENDIF
[2651]53      ENDDO
[38]54      WRITE(*,*) 'In sugwd NKTOPG=',NKTOPG
[3754]55
56      GSIGCR=0.80  ! Sigmal levels to found the top of low level flow height (OROSETUP)
[2651]57      GKDRAG= 0.1  ! used to be 0.1 for mcd Version 1 and 2 (before 10/2000) (OROSETUP)
[3754]58
[38]59      GFRCRIT=1.0
[2651]60      GKWAKE=1.0   ! The G in equation (16)
[3754]61      GRCRIT=0.25  ! Critical value for Mean flow richardson number(OROSETUP)
[38]62      GKDRAGL=4.*GKDRAG
63      GRAHILO=1.
[3754]64      GVCRIT =0.0
65!-------------------------------------------------------------------------------
66! 2.    Set values of security parameters
67!-------------------------------------------------------------------------------
[2651]68      GVSEC=0.10      ! Security values for For normal wind (pu^2+pv^2)^0.5(OROSETUP,GWSTRESS)
[3754]69      GSSEC=1.E-12    ! Security values for Brunt–Väisälä frequency N^2 (OROSETUP)
[2651]70      GTSEC=1.E-07    ! Security values for Sub-grid scale anisotropy(OROSETUP,GWSTRESS)
71
[38]72      RETURN
73      END
Note: See TracBrowser for help on using the repository browser.