Changeset c0884a8 in flexpart.git for src/convmix.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/convmix.f90
r6ecb30a rc0884a8 20 20 !********************************************************************** 21 21 22 subroutine convmix(itime, metdata_format)22 subroutine convmix(itime,id_centre) 23 23 ! i 24 24 !************************************************************** … … 39 39 ! Unified ECMWF and GFS builds 40 40 ! Marian Harustak, 12.5.2017 41 ! - Merged convmix and convmix_gfs into one routine using if-then 41 ! - Merged convmix and convmix_gfs into one routine using if-then 42 42 ! for meteo-type dependent code 43 ! 44 ! Petra Seibert, 2018-06-26: simplified version met data format detection 45 ! 43 46 !************************************************************** 44 47 … … 47 50 use com_mod 48 51 use conv_mod 49 use c lass_gribfile52 use check_gribfile_mod 50 53 51 54 implicit none … … 55 58 integer :: jy, kpart, ktop, ngrid,kz 56 59 integer :: igrid(maxpart), ipoint(maxpart), igridn(maxpart,maxnests) 57 integer :: metdata_format60 integer :: id_centre 58 61 59 62 ! itime [s] current time … … 116 119 117 120 ngrid=0 118 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then121 if (id_centre.eq.icg_id_ecmwf) then 119 122 do j=numbnests,1,-1 120 123 if ( x.gt.xln(j)+eps .and. x.lt.xrn(j)-eps .and. & … … 189 192 td2conv=(td2(ix,jy,1,mind1)*dt2+td2(ix,jy,1,mind2)*dt1)*dtt 190 193 !!$ do kz=1,nconvlev+1 !old 191 if ( metdata_format.eq.GRIBFILE_CENTRE_ECMWF) then194 if (id_centre.eq.icg_id_ecmwf) then 192 195 do kz=1,nuvz-1 !bugfix 193 196 tconv(kz)=(tth(ix,jy,kz+1,mind1)*dt2+ & … … 208 211 209 212 ! Calculate translocation matrix 210 call calcmatrix(lconv,delt,cbaseflux(ix,jy), metdata_format)213 call calcmatrix(lconv,delt,cbaseflux(ix,jy),id_centre) 211 214 igrold = igr 212 215 ktop = 0 … … 285 288 ! calculate translocation matrix 286 289 !******************************* 287 call calcmatrix(lconv,delt,cbasefluxn(ix,jy,inest), metdata_format)290 call calcmatrix(lconv,delt,cbasefluxn(ix,jy,inest),id_centre) 288 291 igrold = igr 289 292 ktop = 0
Note: See TracChangeset
for help on using the changeset viewer.