source: trunk/LMDZ.TITAN/libf/phytitan/radcommon_h.F90 @ 1862

Last change on this file since 1862 was 1788, checked in by jvatant, 7 years ago

Get rid of all the old-generic dummy aerosol scheme ( just left scatterers_h for compilation )
as the new microphysics for Titan will be plugged in
-> even removed sedimentation ( will be done in the microphysical model )
--JVO

File size: 4.2 KB
Line 
1module radcommon_h
2      use radinc_h, only: L_NSPECTI, L_NSPECTV, L_NGAUSS, NTstar, NTstop
3      implicit none
4
5!----------------------------------------------------------------------C
6!
7!                             radcommon.h
8!
9!----------------------------------------------------------------------C
10!
11!  "Include" grid.h and radinc.h before this file in code that uses
12!  some or all of this common data set
13!
14!     WNOI       - Array of wavenumbers at the spectral interval
15!                  centers for the infrared.  Array is NSPECTI
16!                  elements long.
17!     DWNI       - Array of "delta wavenumber", i.e., the width,
18!                  in wavenumbers (cm^-1) of each IR spectral
19!                  interval.  NSPECTI elements long.
20!     WAVEI      - Array (NSPECTI elements long) of the wavelenght
21!                  (in microns) at the center of each IR spectral
22!                  interval.
23!     WNOV       - Array of wavenumbers at the spectral interval
24!                  center for the VISUAL.  Array is NSPECTV
25!                  elements long.
26!     DWNV       - Array of "delta wavenumber", i.e., the width,
27!                  in wavenumbers (cm^-1) of each VISUAL spectral
28!                  interval.  NSPECTV elements long.
29!     WAVEV      - Array (NSPECTV elements long) of the wavelenght
30!                  (in microns) at the center of each VISUAL spectral
31!                  interval.
32!     STELLARF   - Array (NSPECTV elements) of stellar flux (W/M^2) in
33!                  each spectral interval.  Values are for 1 AU,
34!                  scaled to the planetary distance elsewhere.
35!     TAURAY     - Array (NSPECTV elements) of the pressure-independent
36!                  part of Rayleigh scattering optical depth.
37!     FZEROI     - Fraction of zeros in the IR CO2 k-coefficients, for
38!                  each temperature, pressure, and spectral interval
39!     FZEROV     - Fraction of zeros in the VISUAL CO2 k-coefficients, for
40!                  each temperature, pressure, and spectral interval
41!
42
43      REAL*8 BWNI(L_NSPECTI+1), WNOI(L_NSPECTI), DWNI(L_NSPECTI), WAVEI(L_NSPECTI) !BWNI read by master in setspi
44      REAL*8 BWNV(L_NSPECTV+1), WNOV(L_NSPECTV), DWNV(L_NSPECTV), WAVEV(L_NSPECTV) !BWNV read by master in setspv
45      REAL*8 STELLARF(L_NSPECTV), TAURAY(L_NSPECTV)
46!$OMP THREADPRIVATE(WNOI,DWNI,WAVEI,&
47        !$OMP WNOV,DWNV,WAVEV,&
48        !$OMP STELLARF,TAURAY)
49
50      !! AS: introduced to avoid doing same computations again for continuum
51      INTEGER, DIMENSION(:,:,:), ALLOCATABLE :: indi
52      INTEGER, DIMENSION(:,:,:), ALLOCATABLE :: indv
53!$OMP THREADPRIVATE(indi,indv)
54
55      !!! ALLOCATABLE STUFF SO THAT DIMENSIONS ARE READ in *.dat FILES -- AS 12/2011 
56      REAL*8, DIMENSION(:,:,:,:,:), ALLOCATABLE :: gasi, gasv
57      REAL*8, DIMENSION(:), ALLOCATABLE :: PGASREF, TGASREF, PFGASREF
58      real*8 FZEROI(L_NSPECTI)
59      real*8 FZEROV(L_NSPECTV)
60      real*8 pgasmin, pgasmax
61      real*8 tgasmin, tgasmax
62!$OMP THREADPRIVATE(gasi,gasv,&  !pgasref,tgasref,pfgasref read by master in sugas_corrk
63        !$OMP FZEROI,FZEROV)     !pgasmin,pgasmax,tgasmin,tgasmax read by master in sugas_corrk
64
65
66      REAL,SAVE :: tstellar ! Stellar brightness temperature (SW)
67
68      real*8,save :: planckir(L_NSPECTI,NTstop-NTstar+1)
69
70      real*8,save :: PTOP
71      real*8,save,allocatable :: TAUREF(:)
72
73      real*8,parameter :: UBARI = 0.5D0
74
75      real*8,save :: gweight(L_NGAUSS)
76!$OMP THREADPRIVATE(QREFvis,QREFir,omegaREFvis,omegaREFir,&     ! gweight read by master in sugas_corrk
77                !$OMP tstellar,planckir,PTOP)
78
79!     If the gas optical depth (top to the surface) is less than
80!     this value, we place that Gauss-point into the "zeros"
81!     channel.
82      real*8, parameter :: TLIMIT =  1.0D-30
83
84!     Factor to convert pressures from millibars to Pascals
85      real*8, parameter :: SCALEP = 1.00D+2
86
87      real*8, parameter :: sigma = 5.67032D-8
88      real*8, parameter :: grav = 6.672E-11
89
90      real*8,save :: Cmk
91      real*8,save :: glat_ig
92!$OMP THREADPRIVATE(Cmk,glat_ig)
93
94      ! extinction of incoming sunlight (Saturn's rings, eclipses, etc...)
95      REAL, DIMENSION(:), ALLOCATABLE ,SAVE :: eclipse
96
97      !Latitude-dependent gravity
98      REAL, DIMENSION(:), ALLOCATABLE , SAVE :: glat
99!$OMP THREADPRIVATE(glat,eclipse)
100
101end module radcommon_h
Note: See TracBrowser for help on using the repository browser.