Changes in src/FLEXPART_MPI.f90 [5184a7c:d8eed02] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/FLEXPART_MPI.f90

    r5184a7c rd8eed02  
    3333  !                                                                            *
    3434  !*****************************************************************************
     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  !*****************************************************************************
    3543  !                                                                            *
    3644  ! Variables:                                                                 *
     
    4755  use netcdf_output_mod, only: writeheader_netcdf
    4856  use random_mod, only: gasdev1
     57  use class_gribfile
    4958
    5059  implicit none
     
    5362  integer :: idummy = -320
    5463  character(len=256) :: inline_options  !pathfile, flexversion, arg2
     64  integer :: metdata_format = GRIBFILE_CENTRE_UNKNOWN
     65  integer :: detectformat
     66
    5567
    5668
     
    8092  ! FLEXPART version string
    8193  flexversion_major = '10' ! Major version number, also used for species file names
    82   flexversion='Ver. '//trim(flexversion_major)//'.1beta MPI (2016-11-02)'
     94  flexversion='Ver. '//trim(flexversion_major)//'.2beta MPI (2017-08-01)'
    8395  verbosity=0
    8496
     
    197209  call readavailable
    198210
     211  ! Detect metdata format
     212  !**********************
     213
     214  metdata_format = detectformat()
     215
     216  if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
     217    print *,'ECMWF metdata detected'
     218  elseif (metdata_format.eq.GRIBFILE_CENTRE_NCEP) then
     219    print *,'NCEP metdata detected'
     220  else
     221    print *,'Unknown metdata format'
     222    return
     223  endif
     224
     225
     226
    199227  ! If nested wind fields are used, allocate arrays
    200228  !************************************************
     
    213241  endif
    214242
    215   call gridcheck
     243  if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then
     244    call gridcheck_ecmwf
     245  else
     246    call gridcheck_gfs
     247  end if
     248
    216249
    217250  if (verbosity.gt.1 .and. lroot) then   
     
    456489
    457490
    458   call timemanager
     491  call timemanager(metdata_format)
    459492
    460493
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG