source: trunk/LMDZ.GENERIC/libf/phystd/radcommon_h.F90 @ 1243

Last change on this file since 1243 was 1194, checked in by sglmd, 11 years ago

Latitude-dependent gravity field added. Option oblate = .true. in callphys.def, and three additional variables needed: J2, Rmean and MassPlanet?.

File size: 5.3 KB
Line 
1      module radcommon_h
2
3      use radinc_h
4      implicit none
5
6!----------------------------------------------------------------------C
7!
8!                             radcommon.h
9!
10!----------------------------------------------------------------------C
11!
12!  "Include" grid.h and radinc.h before this file in code that uses
13!  some or all of this common data set
14!
15!     WNOI       - Array of wavenumbers at the spectral interval
16!                  centers for the infrared.  Array is NSPECTI
17!                  elements long.
18!     DWNI       - Array of "delta wavenumber", i.e., the width,
19!                  in wavenumbers (cm^-1) of each IR spectral
20!                  interval.  NSPECTI elements long.
21!     WAVEI      - Array (NSPECTI elements long) of the wavelenght
22!                  (in microns) at the center of each IR spectral
23!                  interval.
24!     WNOV       - Array of wavenumbers at the spectral interval
25!                  center for the VISUAL.  Array is NSPECTV
26!                  elements long.
27!     DWNV       - Array of "delta wavenumber", i.e., the width,
28!                  in wavenumbers (cm^-1) of each VISUAL spectral
29!                  interval.  NSPECTV elements long.
30!     WAVEV      - Array (NSPECTV elements long) of the wavelenght
31!                  (in microns) at the center of each VISUAL spectral
32!                  interval.
33!     STELLARF   - Array (NSPECTV elements) of stellar flux (W/M^2) in
34!                  each spectral interval.  Values are for 1 AU,
35!                  scaled to the planetary distance elsewhere.
36!     TAURAY     - Array (NSPECTV elements) of the pressure-independent
37!                  part of Rayleigh scattering optical depth.
38!     TAURAYVAR  - Array (NSPECTV elements) of the pressure-independent
39!                  part of Rayleigh scattering optical depth for the variable gas.
40!     FZEROI     - Fraction of zeros in the IR CO2 k-coefficients, for
41!                  each temperature, pressure, and spectral interval
42!     FZEROV     - Fraction of zeros in the VISUAL CO2 k-coefficients, for
43!                  each temperature, pressure, and spectral interval
44!
45!     AEROSOL RADIATIVE OPTICAL CONSTANTS
46!
47!   Shortwave
48!   ~~~~~~~~~
49!
50! For the "naerkind" kind of aerosol radiative properties :
51! QVISsQREF  :  Qext / Qext("longrefvis")
52! omegavis   :  single scattering albedo
53! gvis       :  assymetry factor
54!
55!   Longwave
56!   ~~~~~~~~
57!
58! For the "naerkind" kind of aerosol radiative properties :
59! QIRsQREF :  Qext / Qext("longrefvis")
60! omegaIR  :  mean single scattering albedo
61! gIR      :  mean assymetry factor
62
63      REAL*8 BWNI(L_NSPECTI+1), WNOI(L_NSPECTI), DWNI(L_NSPECTI), WAVEI(L_NSPECTI)
64      REAL*8 BWNV(L_NSPECTV+1), WNOV(L_NSPECTV), DWNV(L_NSPECTV), WAVEV(L_NSPECTV)
65      REAL*8 STELLARF(L_NSPECTV), TAURAY(L_NSPECTV), TAURAYVAR(L_NSPECTV)
66
67      REAL*8 blami(L_NSPECTI+1)
68      REAL*8 blamv(L_NSPECTV+1) ! these are needed by suaer.F90
69
70      !! AS: introduced to avoid doing same computations again for continuum
71      INTEGER, DIMENSION(:,:,:), ALLOCATABLE :: indi
72      INTEGER, DIMENSION(:,:,:), ALLOCATABLE :: indv
73
74      !!! ALLOCATABLE STUFF SO THAT DIMENSIONS ARE READ in *.dat FILES -- AS 12/2011 
75      REAL*8, DIMENSION(:,:,:,:,:), ALLOCATABLE :: gasi, gasv
76      REAL*8, DIMENSION(:), ALLOCATABLE :: PGASREF, TGASREF, WREFVAR, PFGASREF
77      real*8 FZEROI(L_NSPECTI)
78      real*8 FZEROV(L_NSPECTV)
79      real*8 pgasmin, pgasmax
80      real*8 tgasmin, tgasmax
81
82      real QVISsQREF(L_NSPECTV,naerkind,nsizemax)
83      real omegavis(L_NSPECTV,naerkind,nsizemax)
84      real gvis(L_NSPECTV,naerkind,nsizemax)
85      real QIRsQREF(L_NSPECTI,naerkind,nsizemax)
86      real omegair(L_NSPECTI,naerkind,nsizemax)
87      real gir(L_NSPECTI,naerkind,nsizemax)
88
89
90! Reference wavelengths used to compute reference optical depth (m)
91! ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
92
93      REAL lamrefir(naerkind),lamrefvis(naerkind)
94
95! Actual number of grain size classes in each domain for a
96!   given aerosol:
97
98      INTEGER          :: nsize(naerkind,2)
99
100! Particle size axis (depend on the kind of aerosol and the
101!   radiation domain)
102
103      DOUBLE PRECISION :: radiustab(naerkind,2,nsizemax)
104
105! Extinction coefficient at reference wavelengths;
106!   These wavelengths are defined in aeroptproperties, and called
107!   longrefvis and longrefir.
108
109      REAL :: QREFvis(naerkind,nsizemax)
110      REAL :: QREFir(naerkind,nsizemax)
111      REAL :: omegaREFvis(naerkind,nsizemax)
112      REAL :: omegaREFir(naerkind,nsizemax)
113
114      REAL tstellar ! Stellar brightness temperature (SW)
115
116      real*8 planckir(L_NSPECTI,NTstop-NTstar+1)
117
118      real*8 PTOP, TAUREF(L_LEVELS+1)
119
120      real*8, parameter :: UBARI = 0.5D0
121
122      real*8 gweight(L_NGAUSS)
123
124!     If the gas optical depth (top to the surface) is less than
125!     this value, we place that Gauss-point into the "zeros"
126!     channel.
127      real*8, parameter :: TLIMIT =  1.0D-30
128
129!     Factor to convert pressures from millibars to Pascals
130      real*8, parameter :: SCALEP = 1.00D+2
131
132      real*8, parameter :: sigma = 5.67032D-8
133      real*8, parameter :: grav = 6.672E-11
134
135      real*8 Cmk
136      save Cmk
137      real*8 glat_ig
138      save glat_ig
139
140      ! extinction of incoming sunlight (Saturn's rings, eclipses, etc...)
141      REAL, DIMENSION(:), ALLOCATABLE :: eclipse
142
143      !Latitude-dependent gravity
144      REAL, DIMENSION(:), ALLOCATABLE :: glat
145
146      end module radcommon_h
Note: See TracBrowser for help on using the repository browser.