source: branches/FLEXPART_9.1.3/src/com_mod.f90 @ 13

Last change on this file since 13 was 13, checked in by saeck, 11 years ago

update to wetdepo.f90

File size: 29.2 KB
Line 
1!*******************************************************************************
2!        Include file for particle diffusion model FLEXPART                    *
3!        This file contains a global common block used by FLEXPART             *
4!                                                                              *
5!        Author: A. Stohl                                                      *
6!                                                                              *
7!        June 1996                                                             *
8!                                                                              *
9!        Last update:15 August 2013 IP                                         *
10!                                                                              *
11!*******************************************************************************
12
13module com_mod
14
15  use par_mod, only: dp, numpath, maxnests, maxageclass, maxspec, ni, &
16       numclass, nymax, nxmax, maxcolumn, maxwf, nzmax, nxmaxn, nymaxn, &
17       maxreceptor, maxpart, maxrand, nwzmax, nuvzmax
18
19  implicit none
20
21  !****************************************************************
22  ! Variables defining where FLEXPART input/output files are stored
23  !****************************************************************
24
25  character :: path(numpath+2*maxnests)*120
26  integer :: length(numpath+2*maxnests)
27
28  ! path                    path names needed for trajectory model
29  ! length                  length of path names needed for trajectory model
30
31
32  !********************************************************
33  ! Variables defining the general model run specifications
34  !********************************************************
35
36  integer :: ibdate,ibtime,iedate,ietime
37  real(kind=dp) :: bdate,edate
38
39
40  ! ibdate                  beginning date (YYYYMMDD)
41  ! ibtime                  beginning time (HHMISS)
42  ! iedate                  ending date (YYYYMMDD)
43  ! ietime                  ending time (HHMISS)
44  ! bdate                   beginning date of simulation (julian date)
45  ! edate                   ending date of simulation (julian date)
46
47
48  integer :: ldirect,ideltas
49
50  ! ldirect                 1 for forward, -1 for backward simulation
51  ! ideltas                 length of trajectory loop from beginning to
52  !                    ending date (s)
53
54  integer :: loutstep,loutaver,loutsample,method,lsynctime
55  real :: outstep
56
57  ! loutstep [s]            gridded concentration output every loutstep seconds
58  ! loutaver [s]            concentration output is an average over [s] seconds
59  ! loutsample [s]          sampling interval of gridded concentration output
60  ! lsynctime [s]           synchronisation time of all particles
61  ! method                  indicator which dispersion method is to be used
62  ! outstep = real(abs(loutstep))
63
64  real :: ctl,fine
65  integer :: ifine,iout,ipout,ipin,iflux,mdomainfill
66  integer :: mquasilag,nested_output,ind_source,ind_receptor
67  integer :: ind_rel,ind_samp,ioutputforeachrelease,linit_cond
68  logical :: turbswitch
69
70  ! ctl      factor, by which time step must be smaller than Lagrangian time scale
71  ! ifine    reduction factor for time step used for vertical wind
72  !     Langevin equation for the vertical wind component
73  ! ioutputforeachrelease Should each release be a seperate output field?
74  ! iflux    flux calculation options: 1 calculation of fluxes, 2 no fluxes
75  ! iout     output options: 1 conc. output (ng/m3), 2 mixing ratio (pptv), 3 both
76  ! ipout    particle dump options: 0 no, 1 every output interval, 2 only at end
77  ! ipin     read in particle positions from dumped file from a previous run
78  ! fine     real(ifine)
79  ! mdomainfill 0: normal run
80  !        1: particles are initialized according to atmospheric mass distribution
81  ! ind_source switches between different units for concentrations at the source
82  !  NOTE that in backward simulations the release of computational particles
83  !  takes place at the "receptor" and the sampling of particles at the "source".
84  !     1= mass units
85  !     2= mass mixing ratio units
86  ! ind_receptor switches between different units for FLEXPART concentration at the receptor
87  !     1= mass units
88  !     2= mass mixing ratio units
89  ! linit_cond  switch on the output of sensitivity to initial conditions for backward runs
90  !     0=no, 1=mass unit, 2=mass mixing ratio unit
91  ! mquasilag 0: normal run
92  !      1: Particle position output is produced in a condensed format and particles are numbered
93  ! nested_output: 0 no, 1 yes
94  ! turbswitch              determines how the Markov chain is formulated
95
96  ! ind_rel and ind_samp  are used within the code to change between mass and mass-mix (see readcommand.f)
97
98
99  integer :: mintime,itsplit
100
101  ! mintime                 minimum time step to be used by FLEXPART
102  ! itsplit                 time constant for splitting particles
103
104  integer :: lsubgrid,lconvection,lagespectra
105
106  ! lsubgrid     1 if subgrid topography parameterization switched on, 2 if not
107  ! lconvection  1 if convection parameterization switched on, 0 if not
108  ! lagespectra  1 if age spectra calculation switched on, 2 if not
109
110
111  integer :: nageclass,lage(maxageclass)
112
113  ! nageclass               number of ageclasses for the age spectra calculation
114  ! lage [s]                ageclasses for the age spectra calculation
115
116
117  logical :: gdomainfill
118
119  ! gdomainfill             .T., if domain-filling is global, .F. if not
120
121
122
123  !*********************************************************************
124  ! Variables defining the release locations, released species and their
125  ! properties, etc.
126  !*********************************************************************
127
128  !change Sabine Eckhardt, only save the first 1000 identifier for releasepoints
129  character :: compoint(1001)*45
130  integer :: numpoint
131  !sec, now dynamically allocated:
132  ! ireleasestart(maxpoint),ireleaseend(maxpoint)
133  !      real xpoint1(maxpoint),ypoint1(maxpoint)
134  !real xpoint2(maxpoint),ypoint2(maxpoint)
135  !real zpoint1(maxpoint),zpoint2(maxpoint)
136  !integer*2 kindz(maxpoint)
137  integer :: specnum(maxspec)
138  !real xmass(maxpoint,maxspec)
139  real :: decay(maxspec)
140  real :: weta(maxspec),wetb(maxspec)
141! NIK: 31.01.2013- parameters for in-cloud scavening
142  real :: weta_in(maxspec), wetb_in(maxspec), wetc_in(maxspec), wetd_in(maxspec)
143  real :: reldiff(maxspec),henry(maxspec),f0(maxspec)
144  real :: density(maxspec),dquer(maxspec),dsigma(maxspec)
145  real :: vsetaver(maxspec),cunningham(maxspec),weightmolar(maxspec)
146  real :: vset(maxspec,ni),schmi(maxspec,ni),fract(maxspec,ni)
147  real :: ri(5,numclass),rac(5,numclass),rcl(maxspec,5,numclass)
148  real :: rgs(maxspec,5,numclass),rlu(maxspec,5,numclass)
149  real :: rm(maxspec),dryvel(maxspec),kao(maxspec),ohreact(maxspec)
150  ! se  it is possible to associate a species with a second one to make transfer from gas to aerosol
151  integer :: spec_ass(maxspec)
152
153  real :: area_hour(maxspec,24),point_hour(maxspec,24)
154  real :: area_dow(maxspec,7),point_dow(maxspec,7)
155
156  !integer npart(maxpoint)
157  integer :: nspec,maxpointspec_act
158  character(len=10) :: species(maxspec)
159
160
161  ! compoint                comment, also "name" of each starting point
162  ! numpoint                actual number of trajectory starting/ending points
163  ! ireleasestart,ireleaseend [s] starting and ending time of each release
164  ! xmass                   total mass emitted
165  ! xpoint1,ypoint1         lower left coordinates of release area
166  ! xpoint2,ypoint2         upper right coordinates of release area
167  ! zpoint1,zpoint2         min./max. z-coordinates of release points
168  ! kindz                   1: zpoint is in m agl, 2: zpoint is in m asl
169  ! npart                   number of particles per release point
170  ! nspec                   number of different species allowed for one release
171  ! maxpointspec_act        number of releaspoints for which a different output shall be created
172  ! species                 name of species
173  ! decay                   decay constant of radionuclide
174
175  ! WET DEPOSITION
176  ! weta, wetb              parameters for determining below-cloud wet scavenging coefficients
177  ! weta_in, wetb_in       parameters for determining in-cloud wet scavenging coefficients
178  ! wetc_in, wetd_in       parameters for determining in-cloud wet scavenging coefficients
179
180  ! GAS DEPOSITION
181  ! reldiff                 diffusivitiy of species relative to diff. of H2O
182  ! henry [M/atm]           Henry constant
183  ! f0                      reactivity relative to that of O3
184  ! ri [s/m]                stomatal resistance
185  ! rcl [s/m]               lower canopy resistance
186  ! rgs [s/m]               ground resistance
187  ! rlu [s/m]               leaf cuticular resistance
188  ! rm [s/m]                mesophyll resistance
189  ! dryvel [m/s]            constant dry deposition velocity
190
191  ! PARTICLE DEPOSITION
192  ! density [kg/m3]         density of particles
193  ! dquer [m]               mean diameter of particles
194  ! dsigma                  dsigma=10 or dsigma=0.1 means that 68% of the
195  !                    mass are between 0.1*dquer and 10*dquer
196
197  ! fract                   mass fraction of each diameter interval
198  ! vset [m/s]              gravitational settling velocity in ni intervals
199  ! cunningham              Cunningham slip correction (strictly valid only near surface)
200  ! vsetaver [m/s]          average gravitational settling velocity
201  ! schmi                   Schmidt number**2/3 of each diameter interval
202  ! weightmolar [g/mol]     molecular weight
203
204  ! TIME VARIATION OF EMISSION
205  ! area_hour, point_hour   daily variation of emission strengths for area and point sources
206  ! area_dow, point_dow     day-of-week variation of emission strengths for area and point sources
207
208
209
210  !**********************************************************
211  ! Variables used for domain-filling trajectory calculations
212  !**********************************************************
213
214  integer :: nx_we(2),ny_sn(2)
215  integer :: numcolumn
216  integer :: numcolumn_we(2,0:nymax-1),numcolumn_sn(2,0:nxmax-1)
217  real :: zcolumn_we(2,0:nymax-1,maxcolumn)
218  real :: zcolumn_sn(2,0:nxmax-1,maxcolumn)
219  real :: xmassperparticle
220  real :: acc_mass_we(2,0:nymax-1,maxcolumn)
221  real :: acc_mass_sn(2,0:nxmax-1,maxcolumn)
222
223  ! nx_we(2)                x indices of western and eastern boundary of domain-filling
224  ! ny_sn(2)                y indices of southern and northern boundary of domain-filling
225  ! numcolumn_we            number of particles to be released within one column
226  !                    at the western and eastern boundary surfaces
227  ! numcolumn_sn            same as numcolumn_we, but for southern and northern domain boundary
228  ! numcolumn               maximum number of particles to be released within a single
229  !                    column
230  ! zcolumn_we              altitudes where particles are to be released
231  !                    at the western and eastern boundary surfaces
232  ! zcolumn_sn              same as zcolumn_we, but for southern and northern domain boundary
233  ! xmassperparticle        air mass per particle in the domain-filling traj. option
234  ! acc_mass_we             mass that has accumulated at the western and eastern boundary;
235  !                    if it exceeds xmassperparticle, a particle is released and
236  !                    acc_mass_we is reduced accordingly
237  ! acc_mass_sn             same as acc_mass_we, but for southern and northern domain boundary
238
239
240
241  !******************************************************************************
242  ! Variables associated with the ECMWF meteorological input data ("wind fields")
243  !******************************************************************************
244
245  integer :: numbwf,wftime(maxwf),lwindinterv
246  character(len=255) :: wfname(maxwf),wfspec(maxwf)
247
248  ! lwindinterv [s]         Interval between wind fields currently in memory
249  ! numbwf                  actual number of wind fields
250  ! wftime(maxwf) [s]       times relative to beginning time of wind fields
251  ! wfname(maxwf)           file names of wind fields
252  ! wfspec(maxwf)           specifications of wind field file, e.g. if on hard
253  !                    disc or on tape
254
255  integer :: memtime(2),memind(2)
256
257  ! memtime [s]             validation times of wind fields in memory
258  ! memind                  pointer to wind field, in order to avoid shuffling
259  !                    of wind fields
260
261
262
263  !****************************************************************************
264  ! Variables defining actual size and geographical location of the wind fields
265  !****************************************************************************
266
267  integer :: nx,ny,nxmin1,nymin1,nxfield,nuvz,nwz,nz,nmixz,nlev_ec
268  real :: dx,dy,xlon0,ylat0,dxconst,dyconst,height(nzmax)
269
270  ! nx,ny,nz                actual dimensions of wind fields in x,y and z
271  !                    direction, respectively
272  ! nxmin1,nymin1           nx-1, ny-1, respectively
273  ! nuvz,nwz                vertical dimension of original ECMWF data
274  ! nxfield                 same as nx for limited area fields,
275  !                    but for global fields nx=nxfield+1
276  ! nmixz                   number of levels up to maximum PBL height (3500 m)
277
278  ! nuvz is used for u,v components
279  ! nwz is used for w components (staggered grid)
280  ! nz is used for the levels in transformed coordinates (terrain-following Cartesian
281  ! coordinates)
282
283  ! nlev_ec  number of levels ECMWF model
284  ! dx                      grid distance in x direction
285  ! dy                      grid distance in y direction
286  ! dxconst,dyconst         auxiliary variables for utransform,vtransform
287  ! height                  heights of all levels
288  ! xlon0                   geographical longitude and
289  ! ylat0                   geographical latitude of lower left grid point
290
291
292
293  !*************************************************
294  ! Variables used for vertical model discretization
295  !*************************************************
296
297  real :: akm(nwzmax),bkm(nwzmax)
298  real :: akz(nuvzmax),bkz(nuvzmax)
299  real :: aknew(nzmax),bknew(nzmax)
300
301  ! akm,bkm: coeffizients which regulate vertical discretization of ecmwf model
302  !     (at the border of model layers)
303  ! akz,bkz: model discretization coeffizients at the centre of the layers
304  ! aknew,bknew model discretization coeffizients at the interpolated levels
305
306
307
308  ! Fixed fields, unchangeable with time
309  !*************************************
310
311  real :: oro(0:nxmax-1,0:nymax-1)
312  real :: excessoro(0:nxmax-1,0:nymax-1)
313  real :: lsm(0:nxmax-1,0:nymax-1)
314  real :: xlanduse(0:nxmax-1,0:nymax-1,numclass)
315
316  ! oro [m]              orography of the ECMWF model
317  ! excessoro            excess orography mother domain
318  ! lsm                  land sea mask of the ECMWF model
319  ! xlanduse [0-1]       area fractions in percent
320
321  ! 3d fields
322  !**********
323
324  real :: uu(0:nxmax-1,0:nymax-1,nzmax,2)
325  real :: vv(0:nxmax-1,0:nymax-1,nzmax,2)
326  real :: uupol(0:nxmax-1,0:nymax-1,nzmax,2)
327  real :: vvpol(0:nxmax-1,0:nymax-1,nzmax,2)
328  real :: ww(0:nxmax-1,0:nymax-1,nzmax,2)
329  real :: tt(0:nxmax-1,0:nymax-1,nzmax,2)
330  real :: qv(0:nxmax-1,0:nymax-1,nzmax,2)
331  real :: pv(0:nxmax-1,0:nymax-1,nzmax,2)
332  real :: rho(0:nxmax-1,0:nymax-1,nzmax,2)
333  real :: drhodz(0:nxmax-1,0:nymax-1,nzmax,2)
334  real :: tth(0:nxmax-1,0:nymax-1,nuvzmax,2)
335  real :: qvh(0:nxmax-1,0:nymax-1,nuvzmax,2)
336  real :: pplev(0:nxmax-1,0:nymax-1,nuvzmax,2)
337  !scavenging NIK, PS
338  integer(kind=1) :: clouds(0:nxmax-1,0:nymax-1,nzmax,2)
339  integer :: cloudsh(0:nxmax-1,0:nymax-1,2)
340      integer icloudbot(0:nxmax-1,0:nymax-1,2)
341      integer icloudthck(0:nxmax-1,0:nymax-1,2)
342
343
344  ! uu,vv,ww [m/2]       wind components in x,y and z direction
345  ! uupol,vvpol [m/s]    wind components in polar stereographic projection
346  ! tt [K]               temperature data
347  ! qv                   specific humidity data
348  ! pv (pvu)             potential vorticity
349  ! rho [kg/m3]          air density
350  ! drhodz [kg/m2]       vertical air density gradient
351  ! tth,qvh              tth,qvh on original eta levels
352  ! clouds:   no cloud, no precipitation   0
353  !      cloud, no precipitation      1
354  !      rainout  conv/lsp dominated  2/3
355  !      washout  conv/lsp dominated  4/5
356! PS 2013
357!c icloudbot (m)        cloud bottom height
358!c icloudthck (m)       cloud thickness     
359
360  ! pplev for the GFS version
361
362  ! 2d fields
363  !**********
364
365  real :: ps(0:nxmax-1,0:nymax-1,1,2)
366  real :: sd(0:nxmax-1,0:nymax-1,1,2)
367  real :: msl(0:nxmax-1,0:nymax-1,1,2)
368  real :: tcc(0:nxmax-1,0:nymax-1,1,2)
369  real :: u10(0:nxmax-1,0:nymax-1,1,2)
370  real :: v10(0:nxmax-1,0:nymax-1,1,2)
371  real :: tt2(0:nxmax-1,0:nymax-1,1,2)
372  real :: td2(0:nxmax-1,0:nymax-1,1,2)
373  real :: lsprec(0:nxmax-1,0:nymax-1,1,2)
374  real :: convprec(0:nxmax-1,0:nymax-1,1,2)
375  real :: sshf(0:nxmax-1,0:nymax-1,1,2)
376  real :: ssr(0:nxmax-1,0:nymax-1,1,2)
377  real :: surfstr(0:nxmax-1,0:nymax-1,1,2)
378  real :: ustar(0:nxmax-1,0:nymax-1,1,2)
379  real :: wstar(0:nxmax-1,0:nymax-1,1,2)
380  real :: hmix(0:nxmax-1,0:nymax-1,1,2)
381  real :: tropopause(0:nxmax-1,0:nymax-1,1,2)
382  real :: oli(0:nxmax-1,0:nymax-1,1,2)
383  real :: diffk(0:nxmax-1,0:nymax-1,1,2)
384
385  ! ps                   surface pressure
386  ! sd                   snow depth
387  ! msl                  mean sea level pressure
388  ! tcc                  total cloud cover
389  ! u10                  10 meter u
390  ! v10                  10 meter v
391  ! tt2                  2 meter temperature
392  ! td2                  2 meter dew point
393  ! lsprec [mm/h]        large scale total precipitation
394  ! convprec [mm/h]      convective precipitation
395  ! sshf                 surface sensible heat flux
396  ! ssr                  surface solar radiation
397  ! surfstr              surface stress
398  ! ustar [m/s]          friction velocity
399  ! wstar [m/s]          convective velocity scale
400  ! hmix  [m]            mixing height
401  ! tropopause [m]       altitude of thermal tropopause
402  ! oli [m]              inverse Obukhov length (1/L)
403  ! diffk [m2/s]         diffusion coefficient at reference height
404
405
406  real :: vdep(0:nxmax-1,0:nymax-1,maxspec,2)
407
408  ! vdep [m/s]           deposition velocities
409
410
411  !********************************************************************
412  ! Variables associated with the ECMWF input data (nested wind fields)
413  !********************************************************************
414
415  ! NOTE: all nested variables have the same name as the variables used
416  ! for the mother domain, except with a 'n' appended at the end
417  !********************************************************************
418
419  integer :: numbnests
420
421  ! numbnests    number of nested grids
422
423  character(len=255) :: wfnamen(maxnests,maxwf)
424  character(len=18) :: wfspecn(maxnests,maxwf)
425
426  ! wfnamen      nested wind field names
427  ! wfspecn      specifications of wind field file, e.g. if on hard
428  !         disc or on tape
429
430
431  !*********************************************************************
432  ! Variables characterizing size and location of the nested wind fields
433  !*********************************************************************
434
435  integer :: nxn(maxnests),nyn(maxnests)
436  real :: dxn(maxnests),dyn(maxnests),xlon0n(maxnests),ylat0n(maxnests)
437
438  ! nxn,nyn      actual dimensions of nested wind fields in x and y direction
439  ! dxn,dyn      grid distances in x,y direction for the nested grids
440  ! xlon0n       geographical longitude of lower left grid point of nested wind fields
441  ! ylat0n       geographical latitude of lower left grid point of nested wind fields
442
443
444  ! Nested fields, unchangeable with time
445  !**************************************
446
447  real :: oron(0:nxmaxn-1,0:nymaxn-1,maxnests)
448  real :: excessoron(0:nxmaxn-1,0:nymaxn-1,maxnests)
449  real :: lsmn(0:nxmaxn-1,0:nymaxn-1,maxnests)
450  real :: xlandusen(0:nxmaxn-1,0:nymaxn-1,numclass,maxnests)
451
452
453  ! 3d nested fields
454  !*****************
455
456  real :: uun(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
457  real :: vvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
458  real :: wwn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
459  real :: ttn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
460  real :: qvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
461  real :: pvn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
462  integer(kind=1) :: cloudsn(0:nxmaxn-1,0:nymaxn-1,0:nzmax,2,maxnests)
463  integer :: cloudsnh(0:nxmaxn-1,0:nymaxn-1,2,maxnests)
464  real :: rhon(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
465  real :: drhodzn(0:nxmaxn-1,0:nymaxn-1,nzmax,2,maxnests)
466  real :: tthn(0:nxmaxn-1,0:nymaxn-1,nuvzmax,2,maxnests)
467  real :: qvhn(0:nxmaxn-1,0:nymaxn-1,nuvzmax,2,maxnests)
468
469  ! 2d nested fields
470  !*****************
471
472  real :: psn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
473  real :: sdn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
474  real :: msln(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
475  real :: tccn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
476  real :: u10n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
477  real :: v10n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
478  real :: tt2n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
479  real :: td2n(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
480  real :: lsprecn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
481  real :: convprecn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
482  real :: sshfn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
483  real :: ssrn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
484  real :: surfstrn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
485  real :: ustarn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
486  real :: wstarn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
487  real :: hmixn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
488  real :: tropopausen(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
489  real :: olin(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
490  real :: diffkn(0:nxmaxn-1,0:nymaxn-1,1,2,maxnests)
491  real :: vdepn(0:nxmaxn-1,0:nymaxn-1,maxspec,2,maxnests)
492
493
494  !*************************************************
495  ! Certain auxiliary variables needed for the nests
496  !*************************************************
497
498  real :: xresoln(0:maxnests),yresoln(0:maxnests)
499
500  ! xresoln, yresoln   Factors by which the resolutions in the nests
501  !               are enhanced compared to mother grid
502
503  real :: xln(maxnests),yln(maxnests),xrn(maxnests),yrn(maxnests)
504
505  ! xln,yln,xrn,yrn    Corner points of nested grids in grid coordinates
506  !               of mother grid
507
508
509  !******************************************************
510  ! Variables defining the polar stereographic projection
511  !******************************************************
512
513  logical :: xglobal,sglobal,nglobal
514  real :: switchnorthg,switchsouthg
515
516  !xglobal             T for global fields, F for limited area fields
517  !sglobal             T if domain extends towards south pole
518  !nglobal             T if domain extends towards north pole
519  !switchnorthg,switchsouthg   same as parameters switchnorth,
520  !                    switchsouth, but in grid units
521
522  real :: southpolemap(9),northpolemap(9)
523
524  !southpolemap,northpolemap   define stereographic projections
525  !                    at the two poles
526
527
528  !******************
529  ! Landuse inventory
530  ! Sabine Eckhardt Dec 06: change to new landuse inventary - 11 classes, 1200 x 600 global
531  !******************
532
533  integer(kind=1) :: landinvent(1200,600,6)
534  real :: z0(numclass)
535
536  ! landinvent         landuse inventory (numclass=11 classes)
537  ! z0                  roughness length for the landuse classes
538
539
540
541  !**************************************************************************
542  ! Variables characterizing the output grid and containing the model results
543  !**************************************************************************
544
545  integer :: numxgrid,numygrid,numzgrid
546  real :: dxout,dyout,outlon0,outlat0,xoutshift,youtshift
547  integer :: numxgridn,numygridn
548  real :: dxoutn,dyoutn,outlon0n,outlat0n,xoutshiftn,youtshiftn
549  !real outheight(maxzgrid),outheighthalf(maxzgrid)
550  logical :: DEP,DRYDEP,DRYDEPSPEC(maxspec),WETDEP,OHREA,ASSSPEC
551
552  ! numxgrid,numygrid       number of grid points in x,y-direction
553  ! numxgridn,numygridn     number of grid points in x,y-direction for nested output grid
554  ! numzgrid                number of vertical levels of output grid
555  ! dxout,dyout             grid distance of output grid
556  ! dxoutn,dyoutn           grid distance of nested output grid
557  ! outlon0,outlat0         lower left corner of output grid
558  ! outlon0n,outlat0n       lower left corner of nested output grid
559  ! xoutshift,youtshift     xlon0-outlon0, ylat0-outlat0
560  ! xoutshiftn,youtshiftn   xlon0-outlon0n, ylat0-outlat0n
561  ! outheight [m]           upper levels of the output grid
562  ! outheighthalf [m]       half (middle) levels of the output grid cells
563  ! DEP                     .true., if either dry or wet depos. is switched on
564  ! DRYDEP                  .true., if dry deposition is switched on
565  ! DRYDEPSPEC              .true., if dry deposition is switched on for that species
566  ! WETDEP                  .true., if wet deposition is switched on
567  ! OHREA                   .true., if OH reaction is switched on
568  ! ASSSPEC                 .true., if there are two species asscoiated
569  !                    (i.e. transfer of mass between these two occurs
570
571
572
573  !  if output for each releasepoint shall be created maxpointspec=number of releasepoints
574  !  else maxpointspec is 1 -> moved to unc_mod
575  !  the OUTGRID is moved to the module outg_mod
576  !******************************************************************************
577
578  !real gridunc(0:maxxgrid-1,0:maxygrid-1,maxzgrid,maxspec,
579  !    +             maxpointspec_act,nclassunc,maxageclass)
580  !real griduncn(0:maxxgridn-1,0:maxygridn-1,maxzgrid,maxspec,
581  !    +              maxpointspec_act,nclassunc,maxageclass)
582  !real wetgridunc(0:maxxgrid-1,0:maxygrid-1,maxspec,
583  !    +                maxpointspec_act,nclassunc,maxageclass)
584  !real wetgriduncn(0:maxxgridn-1,0:maxygridn-1,maxspec,
585  !    +ct                 maxpointspec,nclassunc,maxageclass)
586  !real drygridunc(0:maxxgrid-1,0:maxygrid-1,maxspec,maxpointspec,
587  !    +                nclassunc,maxageclass)
588  !real drygriduncn(0:maxxgridn-1,0:maxygridn-1,maxspec,
589  !    +                 maxpointspec,nclassunc,maxageclass)
590
591  !real oroout(0:maxxgrid-1,0:maxygrid-1)
592  !real orooutn(0:maxxgridn-1,0:maxygridn-1)
593  !     real area(0:maxxgrid-1,0:maxygrid-1)
594  !real arean(0:maxxgridn-1,0:maxygridn-1)
595  !real volume(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
596  !real volumen(0:maxxgridn-1,0:maxygridn-1,maxzgrid)
597
598  !real areaeast(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
599  !real areanorth(0:maxxgrid-1,0:maxygrid-1,maxzgrid)
600
601
602  ! gridunc,griduncn        uncertainty of outputted concentrations
603  ! wetgridunc,wetgriduncn  uncertainty of accumulated wet deposited mass on output grid
604  ! drygridunc,drygriduncn  uncertainty of accumulated dry deposited mass on output grid
605  ! oroout,orooutn [m]      height of model topography at output grid
606  ! area,arean [m2]         area of each grid cell
607  ! volume,volumen [m3]     volume of each grid cell
608  ! ... field names with n at the end indicate a nested output grid
609
610
611  !***********************************
612  ! Variables defining receptor points
613  !***********************************
614
615  real :: xreceptor(maxreceptor),yreceptor(maxreceptor)
616  real :: receptorarea(maxreceptor)
617  real :: creceptor(maxreceptor,maxspec)
618  character(len=16) :: receptorname(maxreceptor)
619  integer :: numreceptor
620
621  ! xreceptor,yreceptor     receptor position
622  ! creceptor               concentrations at receptor points
623  ! receptorarea            area of 1*1 grid cell at receptor point
624
625
626
627  !***************************************
628  ! Variables characterizing each particle
629  !***************************************
630
631  integer :: numpart,itra1(maxpart)
632  integer :: npoint(maxpart),nclass(maxpart)
633  integer :: idt(maxpart),itramem(maxpart),itrasplit(maxpart)
634  integer :: numparticlecount
635
636  real(kind=dp) :: xtra1(maxpart),ytra1(maxpart)
637  real :: ztra1(maxpart),xmass1(maxpart,maxspec)
638
639  ! numpart                 actual number of particles in memory
640  ! itra1 (maxpart) [s]     temporal positions of the particles
641  ! npoint(maxpart)         indicates the release point of each particle
642  ! nclass (maxpart)        one of nclassunc classes to which the particle is attributed
643  ! itramem (maxpart) [s]   memorized release times of the particles
644  ! itrasplit (maxpart) [s] next time when particle is to be split into two
645  ! idt(maxpart) [s]        time step to be used for next integration
646  ! numparticlecount        counts the total number of particles that have been released
647  ! xtra1,ytra1,ztra1       spatial positions of the particles
648  ! xmass1 [kg]             particle masses
649
650
651
652  !*******************************************************
653  ! Info table on available chemical species/radionuclides
654  !*******************************************************
655
656  !character*10 specname(maxtable)
657  !real decaytime(maxtable),wetscava(maxtable),wetscavb(maxtable)
658  !real drydiff(maxtable),dryhenry(maxtable),dryactiv(maxtable)
659  !real partrho(maxtable),partmean(maxtable),partsig(maxtable)
660  !real dryvelo(maxtable),weightmol(maxtable),ohreact(maxtable)
661
662  ! specname            Name of chemical species/radionuclide
663  ! decaytime           Half time of radionuclides
664  ! wetscava, wetscavb  Parameters for calculating scavenging coefficients
665  ! drydiff             diffusivitiy of species relative to diff. of H2O
666  ! dryhenry [M/atm]    Henry constant
667  ! dryactiv            reactivity relative to that of O3
668  ! partrho [kg/m3]     density of particles
669  ! partmean [m]        mean diameter of particles
670  ! partsig [m]         mean stand. deviation of particle diameter
671  ! dryvelo [cm/s]      constant dry deposition velocity
672  ! weightmol [g/mol]   molecular weight
673  ! ohreact             OH reaction rate
674
675
676
677  !********************
678  ! Random number field
679  !********************
680
681  real :: rannumb(maxrand)
682
683  ! rannumb                 field of normally distributed random numbers
684
685
686end module com_mod
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG