Changeset c0884a8 in flexpart.git for src/getfields.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.f90
r6ecb30a rc0884a8 20 20 !********************************************************************** 21 21 22 subroutine getfields(itime,nstop, metdata_format)22 subroutine getfields(itime,nstop,id_centre) 23 23 ! i o 24 24 !***************************************************************************** … … 44 44 ! Unified ECMWF and GFS builds * 45 45 ! Marian Harustak, 12.5.2017 * 46 ! - Added passing of metdata_format as it was needed by called routines * 46 ! - Added passing of id_centre as it was needed by called routines * 47 ! * 48 ! Petra Seibert, 2018-06-26: simplified version met data format detection * 49 ! * 47 50 !***************************************************************************** 48 51 ! * … … 62 65 ! tt(0:nxmax,0:nymax,nuvzmax,2) temperature [K] * 63 66 ! ps(0:nxmax,0:nymax,2) surface pressure [Pa] * 64 ! metdata_format format of metdata (ecmwf/gfs)*67 ! id_centre format of metdata (ecmwf/gfs) * 65 68 ! * 66 69 ! Constants: * … … 72 75 use par_mod 73 76 use com_mod 74 use c lass_gribfile77 use check_gribfile_mod 75 78 76 79 implicit none 77 80 78 81 integer :: indj,itime,nstop,memaux 79 integer :: metdata_format82 integer :: id_centre 80 83 81 84 real :: uuh(0:nxmax-1,0:nymax-1,nuvzmax) … … 132 135 do indj=indmin,numbwf-1 133 136 if (ldirect*wftime(indj+1).gt.ldirect*itime) then 134 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then137 if (id_centre.eq.icg_id_ecmwf) then 135 138 call readwind_ecmwf(indj+1,memind(2),uuh,vvh,wwh) 136 139 else … … 138 141 end if 139 142 call readwind_nests(indj+1,memind(2),uuhn,vvhn,wwhn) 140 call calcpar(memind(2),uuh,vvh,pvh, metdata_format)141 call calcpar_nests(memind(2),uuhn,vvhn,pvhn, metdata_format)142 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then143 call calcpar(memind(2),uuh,vvh,pvh,id_centre) 144 call calcpar_nests(memind(2),uuhn,vvhn,pvhn,id_centre) 145 if (id_centre.eq.icg_id_ecmwf) then 143 146 call verttransform_ecmwf(memind(2),uuh,vvh,wwh,pvh) 144 147 else … … 167 170 (ldirect*wftime(indj+1).gt.ldirect*itime)) then 168 171 memind(1)=1 169 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then172 if (id_centre.eq.icg_id_ecmwf) then 170 173 call readwind_ecmwf(indj,memind(1),uuh,vvh,wwh) 171 174 else … … 173 176 end if 174 177 call readwind_nests(indj,memind(1),uuhn,vvhn,wwhn) 175 call calcpar(memind(1),uuh,vvh,pvh, metdata_format)176 call calcpar_nests(memind(1),uuhn,vvhn,pvhn, metdata_format)177 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then178 call calcpar(memind(1),uuh,vvh,pvh,id_centre) 179 call calcpar_nests(memind(1),uuhn,vvhn,pvhn,id_centre) 180 if (id_centre.eq.icg_id_ecmwf) then 178 181 call verttransform_ecmwf(memind(1),uuh,vvh,wwh,pvh) 179 182 else … … 183 186 memtime(1)=wftime(indj) 184 187 memind(2)=2 185 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then188 if (id_centre.eq.icg_id_ecmwf) then 186 189 call readwind_ecmwf(indj+1,memind(2),uuh,vvh,wwh) 187 190 else … … 189 192 end if 190 193 call readwind_nests(indj+1,memind(2),uuhn,vvhn,wwhn) 191 call calcpar(memind(2),uuh,vvh,pvh, metdata_format)192 call calcpar_nests(memind(2),uuhn,vvhn,pvhn, metdata_format)193 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then194 call calcpar(memind(2),uuh,vvh,pvh,id_centre) 195 call calcpar_nests(memind(2),uuhn,vvhn,pvhn,id_centre) 196 if (id_centre.eq.icg_id_ecmwf) then 194 197 call verttransform_ecmwf(memind(2),uuh,vvh,wwh,pvh) 195 198 else
Note: See TracChangeset
for help on using the changeset viewer.