source: branches/flexpart91_hasod/src_parallel/com_mod.f90 @ 10

Last change on this file since 10 was 10, checked in by hasod, 11 years ago

ADD: namelist input implemented for all common input files

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