Changeset c0884a8 in flexpart.git for src/FLEXPART.f90
- Timestamp:
- Jul 20, 2018, 2:40:39 PM (6 years ago)
- Branches:
- univie
- Children:
- 7ca2ef4
- Parents:
- f251e57
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/FLEXPART.f90
r77778f8 rc0884a8 40 40 ! detected metdata format * 41 41 ! - Passed metdata format down to timemanager * 42 ! * 43 ! Petra Seibert, 2018-06-26: simplified version met data format detection * 44 ! * 42 45 !***************************************************************************** 43 46 ! * … … 54 57 55 58 use random_mod, only: gasdev1 56 use c lass_gribfile59 use check_gribfile_mod 57 60 58 61 #ifdef USE_NCF … … 62 65 implicit none 63 66 64 integer :: i,j,ix,jy,inest 67 integer :: i,j,ix,jy,inest,id_centre 65 68 integer :: idummy = -320 66 69 character(len=256) :: inline_options !pathfile, flexversion, arg2 67 integer :: metdata_format = GRIBFILE_CENTRE_UNKNOWN68 integer :: detectformat69 70 70 71 71 … … 190 190 ! Detect metdata format 191 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' 192 193 call cg_get_centre(path(3)(1:length(3)) // trim(wfname(1)), id_centre) 194 if (id_centre.eq.icg_id_ecmwf) then 195 print *,'ECMWF met data detected' 196 elseif (id_centre.eq.icg_id_ncep) then 197 print *,'NCEP met data detected' 199 198 else 200 print *,'Unknown met data format'199 print *,'Unknown met data format' 201 200 stop 202 201 endif … … 220 219 endif 221 220 222 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then221 if (id_centre.eq.icg_id_ecmwf) then 223 222 call gridcheck_ecmwf 224 223 else … … 449 448 endif 450 449 451 call timemanager( metdata_format)450 call timemanager(id_centre) 452 451 453 452 ! NIK 16.02.2005
Note: See TracChangeset
for help on using the changeset viewer.