[e200b7a] | 1 | !********************************************************************** |
---|
| 2 | ! Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010 * |
---|
| 3 | ! Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa, * |
---|
| 4 | ! Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann * |
---|
| 5 | ! * |
---|
| 6 | ! This file is part of FLEXPART. * |
---|
| 7 | ! * |
---|
| 8 | ! FLEXPART is free software: you can redistribute it and/or modify * |
---|
| 9 | ! it under the terms of the GNU General Public License as published by* |
---|
| 10 | ! the Free Software Foundation, either version 3 of the License, or * |
---|
| 11 | ! (at your option) any later version. * |
---|
| 12 | ! * |
---|
| 13 | ! FLEXPART is distributed in the hope that it will be useful, * |
---|
| 14 | ! but WITHOUT ANY WARRANTY; without even the implied warranty of * |
---|
| 15 | ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * |
---|
| 16 | ! GNU General Public License for more details. * |
---|
| 17 | ! * |
---|
| 18 | ! You should have received a copy of the GNU General Public License * |
---|
| 19 | ! along with FLEXPART. If not, see <http://www.gnu.org/licenses/>. * |
---|
| 20 | !********************************************************************** |
---|
| 21 | |
---|
| 22 | program flexpart |
---|
| 23 | |
---|
| 24 | !***************************************************************************** |
---|
| 25 | ! * |
---|
| 26 | ! This is the Lagrangian Particle Dispersion Model FLEXPART. * |
---|
| 27 | ! The main program manages the reading of model run specifications, etc. * |
---|
| 28 | ! All actual computing is done within subroutine timemanager. * |
---|
| 29 | ! * |
---|
| 30 | ! Author: A. Stohl * |
---|
| 31 | ! * |
---|
| 32 | ! 18 May 1996 * |
---|
| 33 | ! * |
---|
| 34 | !***************************************************************************** |
---|
[6ecb30a] | 35 | ! Changes: * |
---|
| 36 | ! Unified ECMWF and GFS builds * |
---|
| 37 | ! Marian Harustak, 12.5.2017 * |
---|
| 38 | ! - Added detection of metdata format using gributils routines * |
---|
| 39 | ! - Distinguished calls to ecmwf/gfs gridcheck versions based on * |
---|
| 40 | ! detected metdata format * |
---|
| 41 | ! - Passed metdata format down to timemanager * |
---|
| 42 | !***************************************************************************** |
---|
[e200b7a] | 43 | ! * |
---|
| 44 | ! Variables: * |
---|
| 45 | ! * |
---|
| 46 | ! Constants: * |
---|
| 47 | ! * |
---|
| 48 | !***************************************************************************** |
---|
| 49 | |
---|
| 50 | use point_mod |
---|
| 51 | use par_mod |
---|
| 52 | use com_mod |
---|
| 53 | use conv_mod |
---|
[a9cf4b1] | 54 | |
---|
[8a65cb0] | 55 | use random_mod, only: gasdev1 |
---|
[6ecb30a] | 56 | use class_gribfile |
---|
[e200b7a] | 57 | |
---|
[a9cf4b1] | 58 | #ifdef USE_NCF |
---|
| 59 | use netcdf_output_mod, only: writeheader_netcdf |
---|
| 60 | #endif |
---|
| 61 | |
---|
[e200b7a] | 62 | implicit none |
---|
| 63 | |
---|
| 64 | integer :: i,j,ix,jy,inest |
---|
| 65 | integer :: idummy = -320 |
---|
[f13406c] | 66 | character(len=256) :: inline_options !pathfile, flexversion, arg2 |
---|
[6ecb30a] | 67 | integer :: metdata_format = GRIBFILE_CENTRE_UNKNOWN |
---|
| 68 | integer :: detectformat |
---|
| 69 | |
---|
[8a65cb0] | 70 | |
---|
| 71 | |
---|
| 72 | ! Initialize arrays in com_mod |
---|
| 73 | !***************************** |
---|
[b0434e1] | 74 | call com_mod_allocate_part(maxpart) |
---|
| 75 | |
---|
[8a65cb0] | 76 | |
---|
[e200b7a] | 77 | ! Generate a large number of random numbers |
---|
| 78 | !****************************************** |
---|
| 79 | |
---|
| 80 | do i=1,maxrand-1,2 |
---|
| 81 | call gasdev1(idummy,rannumb(i),rannumb(i+1)) |
---|
| 82 | end do |
---|
| 83 | call gasdev1(idummy,rannumb(maxrand),rannumb(maxrand-1)) |
---|
| 84 | |
---|
[4c64400] | 85 | |
---|
[b4d29ce] | 86 | ! FLEXPART version string |
---|
[fddc6ec] | 87 | flexversion_major = '10' ! Major version number, also used for species file names |
---|
[d8eed02] | 88 | flexversion='Version '//trim(flexversion_major)//'.2beta (2017-08-01)' |
---|
[8a65cb0] | 89 | verbosity=0 |
---|
| 90 | |
---|
[f13406c] | 91 | ! Read the pathnames where input/output files are stored |
---|
| 92 | !******************************************************* |
---|
| 93 | |
---|
[8a65cb0] | 94 | inline_options='none' |
---|
[f13406c] | 95 | select case (iargc()) |
---|
[8a65cb0] | 96 | case (2) |
---|
[f13406c] | 97 | call getarg(1,arg1) |
---|
| 98 | pathfile=arg1 |
---|
| 99 | call getarg(2,arg2) |
---|
| 100 | inline_options=arg2 |
---|
[8a65cb0] | 101 | case (1) |
---|
[f13406c] | 102 | call getarg(1,arg1) |
---|
| 103 | pathfile=arg1 |
---|
| 104 | if (arg1(1:1).eq.'-') then |
---|
[b4d29ce] | 105 | write(pathfile,'(a11)') './pathnames' |
---|
| 106 | inline_options=arg1 |
---|
[f13406c] | 107 | endif |
---|
[8a65cb0] | 108 | case (0) |
---|
[f13406c] | 109 | write(pathfile,'(a11)') './pathnames' |
---|
| 110 | end select |
---|
| 111 | |
---|
[e200b7a] | 112 | ! Print the GPL License statement |
---|
| 113 | !******************************************************* |
---|
[4fbe7a5] | 114 | print*,'Welcome to FLEXPART ', trim(flexversion) |
---|
[b4d29ce] | 115 | print*,'FLEXPART is free software released under the GNU General Public License.' |
---|
[414a5e5] | 116 | |
---|
[8a65cb0] | 117 | if (inline_options(1:1).eq.'-') then |
---|
| 118 | if (trim(inline_options).eq.'-v'.or.trim(inline_options).eq.'-v1') then |
---|
| 119 | print*, 'Verbose mode 1: display detailed information during run' |
---|
[b4d29ce] | 120 | verbosity=1 |
---|
[8a65cb0] | 121 | endif |
---|
| 122 | if (trim(inline_options).eq.'-v2') then |
---|
| 123 | print*, 'Verbose mode 2: display more detailed information during run' |
---|
[b4d29ce] | 124 | verbosity=2 |
---|
| 125 | endif |
---|
[8a65cb0] | 126 | if (trim(inline_options).eq.'-i') then |
---|
| 127 | print*, 'Info mode: provide detailed run specific information and stop' |
---|
[b4d29ce] | 128 | verbosity=1 |
---|
| 129 | info_flag=1 |
---|
| 130 | endif |
---|
[8a65cb0] | 131 | if (trim(inline_options).eq.'-i2') then |
---|
| 132 | print*, 'Info mode: provide more detailed run specific information and stop' |
---|
| 133 | verbosity=2 |
---|
| 134 | info_flag=1 |
---|
[b4d29ce] | 135 | endif |
---|
| 136 | endif |
---|
| 137 | |
---|
[f13406c] | 138 | if (verbosity.gt.0) then |
---|
[b4d29ce] | 139 | write(*,*) 'call readpaths' |
---|
[f13406c] | 140 | endif |
---|
| 141 | call readpaths(pathfile) |
---|
| 142 | |
---|
[8a65cb0] | 143 | if (verbosity.gt.1) then !show clock info |
---|
| 144 | !print*,'length(4)',length(4) |
---|
[f13406c] | 145 | !count=0,count_rate=1000 |
---|
[8a65cb0] | 146 | CALL SYSTEM_CLOCK(count_clock0, count_rate, count_max) |
---|
[f13406c] | 147 | !WRITE(*,*) 'SYSTEM_CLOCK',count, count_rate, count_max |
---|
| 148 | !WRITE(*,*) 'SYSTEM_CLOCK, count_clock0', count_clock0 |
---|
| 149 | !WRITE(*,*) 'SYSTEM_CLOCK, count_rate', count_rate |
---|
| 150 | !WRITE(*,*) 'SYSTEM_CLOCK, count_max', count_max |
---|
[8a65cb0] | 151 | endif |
---|
[e200b7a] | 152 | |
---|
| 153 | ! Read the user specifications for the current model run |
---|
| 154 | !******************************************************* |
---|
| 155 | |
---|
[f13406c] | 156 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 157 | write(*,*) 'call readcommand' |
---|
[f13406c] | 158 | endif |
---|
[e200b7a] | 159 | call readcommand |
---|
[f13406c] | 160 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 161 | write(*,*) ' ldirect=', ldirect |
---|
| 162 | write(*,*) ' ibdate,ibtime=',ibdate,ibtime |
---|
[b4d29ce] | 163 | write(*,*) ' iedate,ietime=', iedate,ietime |
---|
[8a65cb0] | 164 | if (verbosity.gt.1) then |
---|
[b4d29ce] | 165 | CALL SYSTEM_CLOCK(count_clock, count_rate, count_max) |
---|
| 166 | write(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max |
---|
| 167 | endif |
---|
[8a65cb0] | 168 | endif |
---|
[e200b7a] | 169 | |
---|
| 170 | ! Read the age classes to be used |
---|
| 171 | !******************************** |
---|
[f13406c] | 172 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 173 | write(*,*) 'call readageclasses' |
---|
[f13406c] | 174 | endif |
---|
[e200b7a] | 175 | call readageclasses |
---|
| 176 | |
---|
[8a65cb0] | 177 | if (verbosity.gt.1) then |
---|
[b4d29ce] | 178 | CALL SYSTEM_CLOCK(count_clock, count_rate, count_max) |
---|
| 179 | write(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max |
---|
[f13406c] | 180 | endif |
---|
[e200b7a] | 181 | |
---|
| 182 | ! Read, which wind fields are available within the modelling period |
---|
| 183 | !****************************************************************** |
---|
| 184 | |
---|
[f13406c] | 185 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 186 | write(*,*) 'call readavailable' |
---|
[f13406c] | 187 | endif |
---|
[e200b7a] | 188 | call readavailable |
---|
| 189 | |
---|
[6ecb30a] | 190 | ! Detect metdata format |
---|
| 191 | !********************** |
---|
| 192 | |
---|
| 193 | metdata_format = detectformat() |
---|
| 194 | |
---|
| 195 | if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then |
---|
| 196 | print *,'ECMWF metdata detected' |
---|
| 197 | elseif (metdata_format.eq.GRIBFILE_CENTRE_NCEP) then |
---|
| 198 | print *,'NCEP metdata detected' |
---|
| 199 | else |
---|
| 200 | print *,'Unknown metdata format' |
---|
[0c00f1f] | 201 | stop |
---|
[6ecb30a] | 202 | endif |
---|
| 203 | |
---|
| 204 | |
---|
| 205 | |
---|
[b0434e1] | 206 | ! If nested wind fields are used, allocate arrays |
---|
| 207 | !************************************************ |
---|
| 208 | |
---|
| 209 | if (verbosity.gt.0) then |
---|
| 210 | write(*,*) 'call com_mod_allocate_nests' |
---|
| 211 | endif |
---|
| 212 | call com_mod_allocate_nests |
---|
| 213 | |
---|
[e200b7a] | 214 | ! Read the model grid specifications, |
---|
| 215 | ! both for the mother domain and eventual nests |
---|
| 216 | !********************************************** |
---|
[f13406c] | 217 | |
---|
| 218 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 219 | write(*,*) 'call gridcheck' |
---|
[f13406c] | 220 | endif |
---|
[8a65cb0] | 221 | |
---|
[6ecb30a] | 222 | if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then |
---|
| 223 | call gridcheck_ecmwf |
---|
| 224 | else |
---|
| 225 | call gridcheck_gfs |
---|
| 226 | end if |
---|
[f13406c] | 227 | |
---|
[8a65cb0] | 228 | if (verbosity.gt.1) then |
---|
[b4d29ce] | 229 | CALL SYSTEM_CLOCK(count_clock, count_rate, count_max) |
---|
| 230 | write(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max |
---|
[f13406c] | 231 | endif |
---|
| 232 | |
---|
| 233 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 234 | write(*,*) 'call gridcheck_nests' |
---|
[f13406c] | 235 | endif |
---|
[e200b7a] | 236 | call gridcheck_nests |
---|
| 237 | |
---|
| 238 | ! Read the output grid specifications |
---|
| 239 | !************************************ |
---|
| 240 | |
---|
[f13406c] | 241 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 242 | write(*,*) 'call readoutgrid' |
---|
[f13406c] | 243 | endif |
---|
| 244 | |
---|
[e200b7a] | 245 | call readoutgrid |
---|
| 246 | |
---|
[f13406c] | 247 | if (nested_output.eq.1) then |
---|
[b4d29ce] | 248 | call readoutgrid_nest |
---|
[f13406c] | 249 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 250 | write(*,*) '# readoutgrid_nest' |
---|
[f13406c] | 251 | endif |
---|
| 252 | endif |
---|
[e200b7a] | 253 | |
---|
| 254 | ! Read the receptor points for which extra concentrations are to be calculated |
---|
| 255 | !***************************************************************************** |
---|
| 256 | |
---|
[f13406c] | 257 | if (verbosity.eq.1) then |
---|
[8a65cb0] | 258 | print*,'call readreceptors' |
---|
[f13406c] | 259 | endif |
---|
[e200b7a] | 260 | call readreceptors |
---|
| 261 | |
---|
| 262 | ! Read the physico-chemical species property table |
---|
| 263 | !************************************************* |
---|
| 264 | !SEC: now only needed SPECIES are read in readreleases.f |
---|
| 265 | !call readspecies |
---|
| 266 | |
---|
| 267 | |
---|
| 268 | ! Read the landuse inventory |
---|
| 269 | !*************************** |
---|
| 270 | |
---|
[f13406c] | 271 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 272 | print*,'call readlanduse' |
---|
[f13406c] | 273 | endif |
---|
[e200b7a] | 274 | call readlanduse |
---|
| 275 | |
---|
| 276 | ! Assign fractional cover of landuse classes to each ECMWF grid point |
---|
| 277 | !******************************************************************** |
---|
| 278 | |
---|
[f13406c] | 279 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 280 | print*,'call assignland' |
---|
[f13406c] | 281 | endif |
---|
[e200b7a] | 282 | call assignland |
---|
| 283 | |
---|
| 284 | ! Read the coordinates of the release locations |
---|
| 285 | !********************************************** |
---|
| 286 | |
---|
[f13406c] | 287 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 288 | print*,'call readreleases' |
---|
[f13406c] | 289 | endif |
---|
[e200b7a] | 290 | call readreleases |
---|
| 291 | |
---|
| 292 | ! Read and compute surface resistances to dry deposition of gases |
---|
| 293 | !**************************************************************** |
---|
| 294 | |
---|
[f13406c] | 295 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 296 | print*,'call readdepo' |
---|
[f13406c] | 297 | endif |
---|
[e200b7a] | 298 | call readdepo |
---|
| 299 | |
---|
| 300 | ! Convert the release point coordinates from geografical to grid coordinates |
---|
| 301 | !*************************************************************************** |
---|
| 302 | |
---|
[f13406c] | 303 | call coordtrafo |
---|
| 304 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 305 | print*,'call coordtrafo' |
---|
[f13406c] | 306 | endif |
---|
[e200b7a] | 307 | |
---|
| 308 | ! Initialize all particles to non-existent |
---|
| 309 | !***************************************** |
---|
| 310 | |
---|
[f13406c] | 311 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 312 | print*,'Initialize all particles to non-existent' |
---|
[f13406c] | 313 | endif |
---|
[e200b7a] | 314 | do j=1,maxpart |
---|
| 315 | itra1(j)=-999999999 |
---|
| 316 | end do |
---|
| 317 | |
---|
| 318 | ! For continuation of previous run, read in particle positions |
---|
| 319 | !************************************************************* |
---|
| 320 | |
---|
| 321 | if (ipin.eq.1) then |
---|
[f13406c] | 322 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 323 | print*,'call readpartpositions' |
---|
[f13406c] | 324 | endif |
---|
[e200b7a] | 325 | call readpartpositions |
---|
| 326 | else |
---|
[f13406c] | 327 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 328 | print*,'numpart=0, numparticlecount=0' |
---|
[f13406c] | 329 | endif |
---|
[e200b7a] | 330 | numpart=0 |
---|
| 331 | numparticlecount=0 |
---|
| 332 | endif |
---|
| 333 | |
---|
| 334 | ! Calculate volume, surface area, etc., of all output grid cells |
---|
| 335 | ! Allocate fluxes and OHfield if necessary |
---|
| 336 | !*************************************************************** |
---|
| 337 | |
---|
[f13406c] | 338 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 339 | print*,'call outgrid_init' |
---|
[f13406c] | 340 | endif |
---|
[e200b7a] | 341 | call outgrid_init |
---|
| 342 | if (nested_output.eq.1) call outgrid_init_nest |
---|
| 343 | |
---|
| 344 | ! Read the OH field |
---|
| 345 | !****************** |
---|
| 346 | |
---|
[f13406c] | 347 | if (OHREA.eqv..TRUE.) then |
---|
| 348 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 349 | print*,'call readOHfield' |
---|
[f13406c] | 350 | endif |
---|
[b4d29ce] | 351 | call readOHfield |
---|
[f13406c] | 352 | endif |
---|
[e200b7a] | 353 | |
---|
| 354 | ! Write basic information on the simulation to a file "header" |
---|
| 355 | ! and open files that are to be kept open throughout the simulation |
---|
| 356 | !****************************************************************** |
---|
| 357 | |
---|
[a9cf4b1] | 358 | #ifdef USE_NCF |
---|
[8a65cb0] | 359 | if (lnetcdfout.eq.1) then |
---|
| 360 | call writeheader_netcdf(lnest=.false.) |
---|
| 361 | else |
---|
| 362 | call writeheader |
---|
| 363 | end if |
---|
| 364 | |
---|
| 365 | if (nested_output.eq.1) then |
---|
| 366 | if (lnetcdfout.eq.1) then |
---|
| 367 | call writeheader_netcdf(lnest=.true.) |
---|
| 368 | else |
---|
| 369 | call writeheader_nest |
---|
| 370 | endif |
---|
| 371 | endif |
---|
[a9cf4b1] | 372 | #endif |
---|
[8a65cb0] | 373 | |
---|
[f13406c] | 374 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 375 | print*,'call writeheader' |
---|
[f13406c] | 376 | endif |
---|
| 377 | |
---|
[e200b7a] | 378 | call writeheader |
---|
[8a65cb0] | 379 | ! FLEXPART 9.2 ticket ?? write header in ASCII format |
---|
[f13406c] | 380 | call writeheader_txt |
---|
| 381 | !if (nested_output.eq.1) call writeheader_nest |
---|
| 382 | if (nested_output.eq.1.and.surf_only.ne.1) call writeheader_nest |
---|
| 383 | if (nested_output.eq.1.and.surf_only.eq.1) call writeheader_nest_surf |
---|
| 384 | if (nested_output.ne.1.and.surf_only.eq.1) call writeheader_surf |
---|
| 385 | |
---|
| 386 | !open(unitdates,file=path(2)(1:length(2))//'dates') |
---|
| 387 | |
---|
| 388 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 389 | print*,'call openreceptors' |
---|
[f13406c] | 390 | endif |
---|
[e200b7a] | 391 | call openreceptors |
---|
| 392 | if ((iout.eq.4).or.(iout.eq.5)) call openouttraj |
---|
| 393 | |
---|
| 394 | ! Releases can only start and end at discrete times (multiples of lsynctime) |
---|
| 395 | !*************************************************************************** |
---|
| 396 | |
---|
[f13406c] | 397 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 398 | print*,'discretize release times' |
---|
[f13406c] | 399 | endif |
---|
[e200b7a] | 400 | do i=1,numpoint |
---|
[b4d29ce] | 401 | ireleasestart(i)=nint(real(ireleasestart(i))/real(lsynctime))*lsynctime |
---|
| 402 | ireleaseend(i)=nint(real(ireleaseend(i))/real(lsynctime))*lsynctime |
---|
[e200b7a] | 403 | end do |
---|
| 404 | |
---|
| 405 | ! Initialize cloud-base mass fluxes for the convection scheme |
---|
| 406 | !************************************************************ |
---|
| 407 | |
---|
[f13406c] | 408 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 409 | print*,'Initialize cloud-base mass fluxes for the convection scheme' |
---|
[f13406c] | 410 | endif |
---|
| 411 | |
---|
[e200b7a] | 412 | do jy=0,nymin1 |
---|
| 413 | do ix=0,nxmin1 |
---|
| 414 | cbaseflux(ix,jy)=0. |
---|
| 415 | end do |
---|
| 416 | end do |
---|
| 417 | do inest=1,numbnests |
---|
| 418 | do jy=0,nyn(inest)-1 |
---|
| 419 | do ix=0,nxn(inest)-1 |
---|
| 420 | cbasefluxn(ix,jy,inest)=0. |
---|
| 421 | end do |
---|
| 422 | end do |
---|
| 423 | end do |
---|
| 424 | |
---|
[4c64400] | 425 | ! Inform whether output kernel is used or not |
---|
| 426 | !********************************************* |
---|
| 427 | if (lroot) then |
---|
[fe32dca] | 428 | if (.not.lusekerneloutput) then |
---|
[4c64400] | 429 | write(*,*) "Concentrations are calculated without using kernel" |
---|
| 430 | else |
---|
| 431 | write(*,*) "Concentrations are calculated using kernel" |
---|
| 432 | end if |
---|
| 433 | end if |
---|
| 434 | |
---|
| 435 | |
---|
[e200b7a] | 436 | ! Calculate particle trajectories |
---|
| 437 | !******************************** |
---|
| 438 | |
---|
[f13406c] | 439 | if (verbosity.gt.0) then |
---|
[8a65cb0] | 440 | if (verbosity.gt.1) then |
---|
| 441 | CALL SYSTEM_CLOCK(count_clock, count_rate, count_max) |
---|
| 442 | write(*,*) 'SYSTEM_CLOCK',(count_clock - count_clock0)/real(count_rate) !, count_rate, count_max |
---|
| 443 | endif |
---|
| 444 | if (info_flag.eq.1) then |
---|
| 445 | print*, 'info only mode (stop)' |
---|
| 446 | stop |
---|
| 447 | endif |
---|
| 448 | print*,'call timemanager' |
---|
[f13406c] | 449 | endif |
---|
| 450 | |
---|
[6ecb30a] | 451 | call timemanager(metdata_format) |
---|
[e200b7a] | 452 | |
---|
[8a65cb0] | 453 | ! NIK 16.02.2005 |
---|
[c8fc724] | 454 | do i=1,nspec |
---|
| 455 | write(*,*) '**********************************************' |
---|
| 456 | write(*,*) 'Scavenging statistics for species ', species(i), ':' |
---|
| 457 | write(*,*) 'Total number of occurences of below-cloud scavenging', & |
---|
| 458 | & tot_blc_count(i) |
---|
| 459 | write(*,*) 'Total number of occurences of in-cloud scavenging', & |
---|
| 460 | & tot_inc_count(i) |
---|
| 461 | write(*,*) '**********************************************' |
---|
| 462 | end do |
---|
| 463 | |
---|
[8a65cb0] | 464 | write(*,*) 'CONGRATULATIONS: YOU HAVE SUCCESSFULLY COMPLETED A FLE& |
---|
| 465 | &XPART MODEL RUN!' |
---|
[e200b7a] | 466 | |
---|
| 467 | end program flexpart |
---|