Changes in src/getfields_mpi.f90 [6ecb30a:78e62dc] in flexpart.git
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/getfields_mpi.f90
r6ecb30a r78e62dc 20 20 !********************************************************************** 21 21 22 subroutine getfields(itime,nstop,memstat ,metdata_format)22 subroutine getfields(itime,nstop,memstat) 23 23 ! i o o 24 24 !***************************************************************************** … … 58 58 ! memstat=0: no new fields to be read 59 59 ! 60 ! Unified ECMWF and GFS builds61 ! Marian Harustak, 12.5.201762 ! - Added passing of metdata_format as it was needed by called routines63 !64 60 !***************************************************************************** 65 61 ! * … … 81 77 ! tt(0:nxmax,0:nymax,nuvzmax,numwfmem) temperature [K] * 82 78 ! ps(0:nxmax,0:nymax,numwfmem) surface pressure [Pa] * 83 ! metdata_format format of metdata (ecmwf/gfs) *84 79 ! * 85 80 ! Constants: * … … 92 87 use com_mod 93 88 use mpi_mod, only: lmpreader,lmp_use_reader,lmp_sync 94 use class_gribfile95 89 96 90 implicit none 97 91 98 integer :: metdata_format99 92 integer :: indj,itime,nstop,memaux,mindread 100 93 ! mindread: index of where to read 3rd field … … 211 204 if (ldirect*wftime(indj+1).gt.ldirect*itime) then 212 205 if (lmpreader.or..not. lmp_use_reader) then 213 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then 214 call readwind_ecmwf(indj+1,mindread,uuh,vvh,wwh) 215 else 216 call readwind_gfs(indj+1,mindread,uuh,vvh,wwh) 217 end if 206 call readwind(indj+1,mindread,uuh,vvh,wwh) 218 207 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) then 222 call verttransform_ecmwf(mindread,uuh,vvh,wwh,pvh) 223 else 224 call verttransform_gfs(mindread,uuh,vvh,wwh,pvh) 225 end if 208 call calcpar(mindread,uuh,vvh,pvh) 209 call calcpar_nests(mindread,uuhn,vvhn,pvhn) 210 call verttransform(mindread,uuh,vvh,wwh,pvh) 226 211 call verttransform_nests(mindread,uuhn,vvhn,wwhn,pvhn) 227 212 end if … … 245 230 memind(1)=1 246 231 if (lmpreader.or..not.lmp_use_reader) then 247 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then 248 call readwind_ecmwf(indj,memind(1),uuh,vvh,wwh) 249 else 250 call readwind_gfs(indj,memind(1),uuh,vvh,wwh) 251 end if 232 call readwind(indj,memind(1),uuh,vvh,wwh) 252 233 call readwind_nests(indj,memind(1),uuhn,vvhn,wwhn) 253 call calcpar(memind(1),uuh,vvh,pvh,metdata_format) 254 call calcpar_nests(memind(1),uuhn,vvhn,pvhn,metdata_format) 255 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then 256 call verttransform_ecmwf(memind(1),uuh,vvh,wwh,pvh) 257 else 258 call verttransform_gfs(memind(1),uuh,vvh,wwh,pvh) 259 end if 234 call calcpar(memind(1),uuh,vvh,pvh) 235 call calcpar_nests(memind(1),uuhn,vvhn,pvhn) 236 call verttransform(memind(1),uuh,vvh,wwh,pvh) 260 237 call verttransform_nests(memind(1),uuhn,vvhn,wwhn,pvhn) 261 238 end if … … 263 240 memind(2)=2 264 241 if (lmpreader.or..not.lmp_use_reader) then 265 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then 266 call readwind_ecmwf(indj+1,memind(2),uuh,vvh,wwh) 267 else 268 call readwind_gfs(indj+1,memind(2),uuh,vvh,wwh) 269 end if 242 call readwind(indj+1,memind(2),uuh,vvh,wwh) 270 243 call readwind_nests(indj+1,memind(2),uuhn,vvhn,wwhn) 271 call calcpar(memind(2),uuh,vvh,pvh,metdata_format) 272 call calcpar_nests(memind(2),uuhn,vvhn,pvhn,metdata_format) 273 if (metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then 274 call verttransform_ecmwf(memind(2),uuh,vvh,wwh,pvh) 275 else 276 call verttransform_gfs(memind(2),uuh,vvh,wwh,pvh) 277 end if 244 call calcpar(memind(2),uuh,vvh,pvh) 245 call calcpar_nests(memind(2),uuhn,vvhn,pvhn) 246 call verttransform(memind(2),uuh,vvh,wwh,pvh) 278 247 call verttransform_nests(memind(2),uuhn,vvhn,wwhn,pvhn) 279 248 end if
Note: See TracChangeset
for help on using the changeset viewer.