source: trunk/LMDZ.GENERIC/libf/phystd/tracer_h.F90 @ 2613

Last change on this file since 2613 was 2543, checked in by aslmd, 3 years ago

Generic GCM:

Adding k-coefficients mixing on the fly
Working with MordernTrac?

JVO + YJ

File size: 4.8 KB
RevLine 
[787]1
2       module tracer_h
3
4       implicit none
5
[1980]6       integer, save :: nqtot ! total number of tracers
[2542]7       integer, save :: nesp  ! number of species in the chemistry
8!$OMP THREADPRIVATE(nqtot,nesp)
[1621]9
[2436]10       logical :: moderntracdef=.false. ! Standard or modern traceur.def
11!$OMP THREADPRIVATE(moderntracdef)
12
[1980]13       character*30, save, allocatable :: noms(:)   ! name of the tracer
14       real, save, allocatable :: mmol(:)     ! mole mass of tracer (g/mol-1)
[2542]15       real, save, allocatable :: aki(:)      ! to compute coefficient of thermal concduction if photochem
16       real, save, allocatable :: cpi(:)      ! to compute cpnew in concentration.F if photochem
[1980]17       real, save, allocatable :: radius(:)   ! dust and ice particle radius (m)
18       real, save, allocatable :: rho_q(:)    ! tracer densities (kg.m-3)
19       real, save, allocatable :: qext(:)     ! Single Scat. Extinction coeff at 0.67 um
20       real, save, allocatable :: alpha_lift(:)  ! saltation vertical flux/horiz flux ratio (m-1)
21       real, save, allocatable :: alpha_devil(:) ! lifting coeeficient by dust devil
22       real, save, allocatable :: qextrhor(:) ! Intermediate for computing opt. depth from q
[787]23
[1980]24       real,save :: varian      ! Characteristic variance of log-normal distribution
25       real,save :: r3n_q     ! used to compute r0 from number and mass mixing ratio
26       real,save :: rho_dust     ! Mars dust density (kg.m-3)
27       real,save :: rho_ice     ! Water ice density (kg.m-3)
28       real,save :: rho_co2     ! CO2 ice density (kg.m-3)
29       real,save :: ref_r0        ! for computing reff=ref_r0*r0 (in log.n. distribution)
[2542]30!$OMP THREADPRIVATE(noms,mmol,aki,cpi,radius,rho_q,qext,alpha_lift,alpha_devil,qextrhor, &
[1315]31        !$OMP varian,r3n_q,rho_dust,rho_ice,rho_co2,ref_r0)
[787]32
[2542]33       integer, save, allocatable :: is_chim(:) ! 1 if tracer used in chemistry, else 0
[2543]34       integer, save, allocatable :: is_rad(:)  ! 1 if   ""    ""  in radiative transfer, else 0
35!$OMP THREADPRIVATE(is_chim,is_rad)
[2542]36
[2543]37       integer, save, allocatable :: is_recomb(:)      ! 1 if tracer used in recombining scheme, else 0 (if 1, must have is_rad=1)
38       integer, save, allocatable :: is_recomb_qset(:) ! 1 if tracer k-corr assume predefined vmr, else 0 (if 1, must have is_recomb=1)
39       integer, save, allocatable :: is_recomb_qotf(:) ! 1 if tracer recombination is done on-the-fly, else 0 (if 1, must have is_recomb_qset=0)
40!$OMP THREADPRIVATE(is_recomb,is_recomb_qset,is_recomb_qotf)
41
[787]42! tracer indexes: these are initialized in initracer and should be 0 if the
43!                 corresponding tracer does not exist
[1980]44       ! dust
45       integer,save,allocatable :: igcm_dustbin(:) ! for dustbin 'dust' tracers
46       ! dust, special doubleq case
47       integer,save :: igcm_dust_mass   ! dust mass mixing ratio (for transported dust)
48       integer,save :: igcm_dust_number ! dust number mixing ratio (transported dust)
49       ! water
50       integer,save :: igcm_h2o_vap ! water vapour
51       integer,save :: igcm_h2o_ice ! water ice
52       ! chemistry:
53       integer,save :: igcm_co2
54       integer,save :: igcm_co
55       integer,save :: igcm_o
56       integer,save :: igcm_o1d
57       integer,save :: igcm_o2
58       integer,save :: igcm_o3
59       integer,save :: igcm_h
60       integer,save :: igcm_h2
61       integer,save :: igcm_oh
62       integer,save :: igcm_ho2
63       integer,save :: igcm_h2o2
64       integer,save :: igcm_n2
65       integer,save :: igcm_ar
66       integer,save :: igcm_n
67       integer,save :: igcm_no
68       integer,save :: igcm_no2
69       integer,save :: igcm_n2d
70       integer,save :: igcm_ch4
[1799]71
[1980]72       integer,save :: igcm_ch3
73       integer,save :: igcm_ch
74       integer,save :: igcm_3ch2
75       integer,save :: igcm_1ch2
76       integer,save :: igcm_cho
77       integer,save :: igcm_ch2o
78       integer,save :: igcm_ch3o
79       integer,save :: igcm_c
80       integer,save :: igcm_c2
81       integer,save :: igcm_c2h
82       integer,save :: igcm_c2h2
83       integer,save :: igcm_c2h3
84       integer,save :: igcm_c2h4
85       integer,save :: igcm_c2h6
86       integer,save :: igcm_ch2co
87       integer,save :: igcm_ch3co
88       integer,save :: igcm_hcaer
[1799]89
90
91
[1980]92       ! other tracers
93       integer,save :: igcm_ar_n2 ! for simulations using co2 +neutral gaz
94       integer,save :: igcm_co2_ice ! CO2 ice
[1315]95!$OMP THREADPRIVATE(igcm_dustbin,igcm_dust_mass,igcm_dust_number,igcm_h2o_vap,igcm_h2o_ice, &
96        !$OMP igcm_co2,igcm_co,igcm_o,igcm_o1d,igcm_o2,igcm_o3,igcm_h,igcm_h2,igcm_oh,      &
[1799]97        !$OMP igcm_ho2,igcm_h2o2,igcm_n2,igcm_ar,igcm_ar_n2,igcm_co2_ice,                   &
98        !$OMP igcm_n,igcm_no,igcm_no2,igcm_n2d,igcm_ch4,igcm_ch3,igcm_ch,igcm_3ch2,         &
99        !$OMP igcm_1ch2,igcm_cho,igcm_ch2o,igcm_ch3o,igcm_c,igcm_c2,igcm_c2h,igcm_c2h2,     &
100        !$OMP igcm_c2h3,igcm_c2h4,igcm_c2h6,igcm_ch2co,igcm_ch3co,igcm_hcaer)
[787]101
102       end module tracer_h
103
Note: See TracBrowser for help on using the repository browser.