Changeset c0884a8 in flexpart.git for src/getfields_mpi.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/getfields_mpi.f90
r20963b1 rc0884a8 20 20 !********************************************************************** 21 21 22 subroutine getfields(itime,nstop,memstat, metdata_format)22 subroutine getfields(itime,nstop,memstat,id_centre) 23 23 ! i o o 24 24 !***************************************************************************** … … 60 60 ! Unified ECMWF and GFS builds 61 61 ! Marian Harustak, 12.5.2017 62 ! - Added passing of metdata_format as it was needed by called routines 63 ! 64 !***************************************************************************** 62 ! - Added passing of id_centre as it was needed by called routines 63 ! 64 ! Petra Seibert, 2018-06-26: simplified version met data format detection 65 ! !***************************************************************************** 65 66 ! * 66 67 ! Variables: * … … 81 82 ! tt(0:nxmax,0:nymax,nuvzmax,numwfmem) temperature [K] * 82 83 ! ps(0:nxmax,0:nymax,numwfmem) surface pressure [Pa] * 83 ! metdata_formatformat of metdata (ecmwf/gfs) *84 ! id_centre format of metdata (ecmwf/gfs) * 84 85 ! * 85 86 ! Constants: * … … 92 93 use com_mod 93 94 use mpi_mod, only: lmpreader,lmp_use_reader,lmp_sync 94 use c lass_gribfile95 use check_gribfile_mod 95 96 96 97 implicit none 97 98 98 integer :: metdata_format99 integer :: id_centre 99 100 integer :: indj,itime,nstop,memaux,mindread 100 101 ! mindread: index of where to read 3rd field … … 211 212 if (ldirect*wftime(indj+1).gt.ldirect*itime) then 212 213 if (lmpreader.or..not. lmp_use_reader) then 213 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then214 if (id_centre.eq.icg_id_ecmwf) then 214 215 call readwind_ecmwf(indj+1,mindread,uuh,vvh,wwh) 215 216 else … … 217 218 end if 218 219 call readwind_nests(indj+1,mindread,uuhn,vvhn,wwhn) 219 call calcpar(mindread,uuh,vvh,pvh, metdata_format)220 call calcpar_nests(mindread,uuhn,vvhn,pvhn, metdata_format)221 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then220 call calcpar(mindread,uuh,vvh,pvh,id_centre) 221 call calcpar_nests(mindread,uuhn,vvhn,pvhn,id_centre) 222 if (id_centre.eq.icg_id_ecmwf) then 222 223 call verttransform_ecmwf(mindread,uuh,vvh,wwh,pvh) 223 224 else … … 249 250 memind(1)=1 250 251 if (lmpreader.or..not.lmp_use_reader) then 251 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then252 if (id_centre.eq.icg_id_ecmwf) then 252 253 call readwind_ecmwf(indj,memind(1),uuh,vvh,wwh) 253 254 else … … 255 256 end if 256 257 call readwind_nests(indj,memind(1),uuhn,vvhn,wwhn) 257 call calcpar(memind(1),uuh,vvh,pvh, metdata_format)258 call calcpar_nests(memind(1),uuhn,vvhn,pvhn, metdata_format)259 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then258 call calcpar(memind(1),uuh,vvh,pvh,id_centre) 259 call calcpar_nests(memind(1),uuhn,vvhn,pvhn,id_centre) 260 if (id_centre.eq.icg_id_ecmwf) then 260 261 call verttransform_ecmwf(memind(1),uuh,vvh,wwh,pvh) 261 262 else … … 267 268 memind(2)=2 268 269 if (lmpreader.or..not.lmp_use_reader) then 269 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then270 if (id_centre.eq.icg_id_ecmwf) then 270 271 call readwind_ecmwf(indj+1,memind(2),uuh,vvh,wwh) 271 272 else … … 273 274 end if 274 275 call readwind_nests(indj+1,memind(2),uuhn,vvhn,wwhn) 275 call calcpar(memind(2),uuh,vvh,pvh, metdata_format)276 call calcpar_nests(memind(2),uuhn,vvhn,pvhn, metdata_format)277 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then276 call calcpar(memind(2),uuh,vvh,pvh,id_centre) 277 call calcpar_nests(memind(2),uuhn,vvhn,pvhn,id_centre) 278 if (id_centre.eq.icg_id_ecmwf) then 278 279 call verttransform_ecmwf(memind(2),uuh,vvh,wwh,pvh) 279 280 else
Note: See TracChangeset
for help on using the changeset viewer.