Changes in src/getfields_mpi.f90 [6ecb30a:78e62dc] in flexpart.git


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/getfields_mpi.f90

    r6ecb30a r78e62dc  
    2020!**********************************************************************
    2121
    22 subroutine getfields(itime,nstop,memstat,metdata_format)
     22subroutine getfields(itime,nstop,memstat)
    2323!                       i     o       o
    2424!*****************************************************************************
     
    5858!    memstat=0:      no new fields to be read
    5959!         
    60 !   Unified ECMWF and GFS builds                                             
    61 !   Marian Harustak, 12.5.2017                                               
    62 !     - Added passing of metdata_format as it was needed by called routines 
    63 !         
    6460!*****************************************************************************
    6561!                                                                            *
     
    8177! tt(0:nxmax,0:nymax,nuvzmax,numwfmem)   temperature [K]                     *
    8278! ps(0:nxmax,0:nymax,numwfmem)           surface pressure [Pa]               *
    83 ! metdata_format     format of metdata (ecmwf/gfs)                           *
    8479!                                                                            *
    8580! Constants:                                                                 *
     
    9287  use com_mod
    9388  use mpi_mod, only: lmpreader,lmp_use_reader,lmp_sync
    94   use class_gribfile
    9589
    9690  implicit none
    9791
    98   integer :: metdata_format
    9992  integer :: indj,itime,nstop,memaux,mindread
    10093! mindread: index of where to read 3rd field
     
    211204      if (ldirect*wftime(indj+1).gt.ldirect*itime) then
    212205        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)
    218207          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)
    226211          call verttransform_nests(mindread,uuhn,vvhn,wwhn,pvhn)
    227212        end if
     
    245230        memind(1)=1
    246231        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)
    252233          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)
    260237          call verttransform_nests(memind(1),uuhn,vvhn,wwhn,pvhn)
    261238        end if
     
    263240        memind(2)=2
    264241        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)
    270243          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)
    278247          call verttransform_nests(memind(2),uuhn,vvhn,wwhn,pvhn)
    279248        end if
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG