source: trunk/LMDZ.TITAN.old/libf/phytitan/sugwd.F @ 3094

Last change on this file since 3094 was 1530, checked in by emillour, 9 years ago

Venus and Titan GCMs:
Updates in the physics to keep up with updates in LMDZ5 (up to
LMDZ5 trunk, rev 2350) concerning dynamics/physics separation:

  • Adapted makelmdz and makelmdz_fcm script to stop if trying to compile 1d model or newstart or start2archive in parallel.
  • got rid of references to "dimensions.h" in physics. Within physics packages, use nbp_lon (=iim), nbp_lat (=jjmp1) and nbp_lev (=llm) from module mod_grid_phy_lmdz (in phy_common) instead. Only partially done for Titan, because of many hard-coded commons; a necessary first step will be to clean these up (using modules).

EM

File size: 4.9 KB
Line 
1      SUBROUTINE SUGWD(NLON,NLEV,paprs,pplay)
2C     
3C
4C**** *SUGWD* INITIALIZE COMMON YOEGWD CONTROLLING GRAVITY WAVE DRAG
5C
6C     PURPOSE.
7C     --------
8C           INITIALIZE YOEGWD, THE COMMON THAT CONTROLS THE
9C           GRAVITY WAVE DRAG PARAMETRIZATION.
10C    VERY IMPORTANT:
11C    ______________
12C           THIS ROUTINE SET_UP THE "TUNABLE PARAMETERS" OF THE
13C           VARIOUS SSO SCHEMES
14C
15C**   INTERFACE.
16C     ----------
17C        CALL *SUGWD* FROM *SUPHEC*
18C              -----        ------
19C (called not from suphec but from first call of physiq.F)
20C
21C        EXPLICIT ARGUMENTS :
22C        --------------------
23C        PAPRS,PPLAY : Pressure at semi and full model levels
24C        NLEV        : number of model levels
25c        NLON        : number of points treated in the physics
26C
27C        IMPLICIT ARGUMENTS :
28C        --------------------
29C        COMMON YOEGWD
30C-GFRCRIT-R:  Critical Non-dimensional mountain Height
31C             (HNC in (1),    LOTT 1999)
32C-GKWAKE--R:  Bluff-body drag coefficient for low level wake
33C             (Cd in (2),     LOTT 1999)
34C-GRCRIT--R:  Critical Richardson Number
35C             (Ric, End of first column p791 of LOTT 1999)
36C-GKDRAG--R:  Gravity wave drag coefficient
37C             (G in (3),      LOTT 1999)
38C-GKLIFT--R:  Mountain Lift coefficient
39C             (Cl in (4),     LOTT 1999)
40C-GHMAX---R:  Not used
41C-GRAHILO-R:  Set-up the trapped waves fraction
42C             (Beta , End of first column,  LOTT 1999)
43C
44C-GSIGCR--R:  Security value for blocked flow depth
45C-NKTOPG--I:  Security value for blocked flow level
46C-NTOP----I:  An estimate to qualify the upper levels of
47C             the model where one wants to impose strees
48C             profiles
49C-GSSECC--R:  Security min value for low-level B-V frequency
50C-GTSEC---R:  Security min value for anisotropy and GW stress.
51C-GVSEC---R:  Security min value for ulow
52C         
53C
54C     METHOD.
55C     -------
56C        SEE DOCUMENTATION
57C
58C     EXTERNALS.
59C     ----------
60C        NONE
61C
62C     REFERENCE.
63C     ----------
64C     Lott, 1999: Alleviation of stationary biases in a GCM through...
65C                 Monthly Weather Review, 127, pp 788-801.
66C
67C     AUTHOR.
68C     -------
69C        FRANCOIS LOTT        *LMD*
70C
71C     MODIFICATIONS.
72C     --------------
73C        ORIGINAL : 90-01-01 (MARTIN MILLER, ECMWF)
74C        LAST:  99-07-09     (FRANCOIS LOTT,LMD)
75C     ------------------------------------------------------------------
76      use dimphy
77      IMPLICIT NONE
78
79#include "YOEGWD.h"
80C
81C  ARGUMENTS
82      integer nlon,nlev
83      REAL paprs(nlon,nlev+1)
84      REAL pplay(nlon,nlev)
85C
86      INTEGER JK
87      REAL ZPR,ZTOP,ZSIGT,ZPM1R
88
89C
90C*       1.    SET THE VALUES OF THE PARAMETERS
91C              --------------------------------
92C
93 100  CONTINUE
94C
95      PRINT *,' DANS SUGWD NLEV=',NLEV
96      GHMAX=10000.
97C
98      ZPR=100000.
99      ZTOP=0.001
100c valeurs dans la dernière routine de FLott
101c      ZSIGT=0.94
102c valeurs dans les routines Mars
103      ZSIGT=0.85
104C
105Coff  CALL gather(pplay,pplay_glo)
106Coff  CALL bcast(pplay_glo)
107Coff  CALL gather(paprs,paprs_glo)
108Coff  CALL bcast(paprs_glo)
109
110      DO 110 JK=1,NLEV
111Coff  ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1)
112      ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1)
113      IF(ZPM1R.GE.ZSIGT)THEN
114         nktopg=JK
115      ENDIF
116Coff  ZPM1R=pplay_glo(klon_glo/2,jk)/paprs_glo(klon_glo/2,1)
117      ZPM1R=pplay(klon/2,jk)/paprs(klon/2,1)
118      IF(ZPM1R.GE.ZTOP)THEN
119         ntop=JK
120      ENDIF
121  110 CONTINUE
122c
123c  inversion car dans orodrag on compte les niveaux a l'envers
124      nktopg=nlev-nktopg+1
125      ntop=nlev-ntop
126      print *,' DANS SUGWD nktopg=', nktopg
127      print *,' DANS SUGWD ntop=', ntop
128C
129      GSIGCR=0.80
130C
131c valeurs dans la dernière routine de FLott
132c      GKDRAG=0.1875
133c      GRAHILO=0.1   
134c      GRCRIT=1.00
135c      GFRCRIT=1.00
136c      GKWAKE=0.50
137C
138c      GKLIFT=0.25
139c      GVCRIT =0.1
140
141c valeurs dans les routines Mars
142      GKDRAG=0.1
143      GRAHILO=1.0   
144      GRCRIT=0.25
145      GFRCRIT=1.00
146      GKWAKE=1.0
147C
148      GKLIFT=0.25
149      GVCRIT =0.0
150
151      WRITE(UNIT=6,FMT='('' *** SSO essential constants ***'')')
152      WRITE(UNIT=6,FMT='('' *** SPECIFIED IN SUGWD ***'')')
153      WRITE(UNIT=6,FMT='('' Gravity wave ct '',E13.7,'' '')')GKDRAG
154      WRITE(UNIT=6,FMT='('' Trapped/total wave dag '',E13.7,'' '')')
155     S      GRAHILO
156      WRITE(UNIT=6,FMT='('' Critical Richardson   = '',E13.7,'' '')')
157     S                  GRCRIT
158      WRITE(UNIT=6,FMT='('' Critical Froude'',e13.7)') GFRCRIT
159      WRITE(UNIT=6,FMT='('' Low level Wake bluff cte'',e13.7)') GKWAKE
160      WRITE(UNIT=6,FMT='('' Low level lift  cte'',e13.7)') GKLIFT
161
162C
163C
164C      ----------------------------------------------------------------
165C
166C*       2.    SET VALUES OF SECURITY PARAMETERS
167C              ---------------------------------
168C
169 200  CONTINUE
170C
171c valeurs dans la dernière routine de FLott
172c      GVSEC=0.10
173c      GSSEC=0.0001
174C
175c      GTSEC=0.00001
176C
177c valeurs dans les routines Mars
178      GVSEC=0.10
179      GSSEC=1.e-12
180C
181      GTSEC=1.e-7
182C
183      RETURN
184      END
185
Note: See TracBrowser for help on using the repository browser.