Changeset d6a0977 in flexpart.git for src/readwind.f90


Ignore:
Timestamp:
Dec 14, 2015, 3:10:04 PM (8 years ago)
Author:
Espen Sollum ATMOS <eso@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
f75967d
Parents:
88d8c3d
Message:

Updates to Henrik's wet depo scheme

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/readwind.f90

    r5f9d14a rd6a0977  
    106106  hflswitch=.false.
    107107  strswitch=.false.
    108 !hg
     108!ZHG test the grib fields that have lcwc without using them
    109109!  readcloud=.false.
    110 !hg end
     110
    111111  levdiff2=nlev_ec-nwz+1
    112112  iumax=0
     
    190190    elseif ((parCat.eq.1).and.(parNum.eq.0).and.(typSurf.eq.105)) then ! Q
    191191      isec1(6)=133         ! indicatorOfParameter
    192 !hg
     192!ZHG ! READ CLOUD FIELD : assume these to be added together to one variable
    193193    elseif ((parCat.eq.1).and.(parNum.eq.83).and.(typSurf.eq.105)) then ! clwc
    194194      isec1(6)=246         ! indicatorOfParameter
    195     elseif ((parCat.eq.1).and.(parNum.eq.84).and.(typSurf.eq.105)) then ! ciwc
    196       isec1(6)=247         ! indicatorOfParameter
    197  !hg end
     195! ICE AND WATER IS ADDED TOGETHER IN NEW WINDFIELDS
     196!    elseif ((parCat.eq.1).and.(parNum.eq.84).and.(typSurf.eq.105)) then ! ciwc
     197!      isec1(6)=247         ! indicatorOfParameter
     198!ZHG end
    198199    elseif ((parCat.eq.3).and.(parNum.eq.0).and.(typSurf.eq.1)) then !SP
    199200      isec1(6)=134         ! indicatorOfParameter
     
    226227    elseif ((parCat.eq.4).and.(parNum.eq.9).and.(typSurf.eq.1)) then ! SR
    227228      isec1(6)=176         ! indicatorOfParameter
    228     elseif ((parCat.eq.2).and.(parNum.eq.17) .or. parId .eq. 180) then ! EWSS
     229!    elseif ((parCat.eq.2).and.(parNum.eq.17) .or. parId .eq. 180) then ! EWSS --wrong
     230    elseif ((parCat.eq.2).and.(parNum.eq.38) .or. parId .eq. 180) then ! EWSS --correct
    229231      isec1(6)=180         ! indicatorOfParameter
    230     elseif ((parCat.eq.2).and.(parNum.eq.18) .or. parId .eq. 181) then ! NSSS
     232!    elseif ((parCat.eq.2).and.(parNum.eq.18) .or. parId .eq. 181) then ! NSSS --wrong
     233    elseif ((parCat.eq.2).and.(parNum.eq.37) .or. parId .eq. 181) then ! NSSS --correct
    231234      isec1(6)=181         ! indicatorOfParameter
    232235    elseif ((parCat.eq.3).and.(parNum.eq.4)) then ! ORO
     
    356359      if(isec1(6).eq.131) iumax=max(iumax,nlev_ec-k+1)
    357360      if(isec1(6).eq.135) iwmax=max(iwmax,nlev_ec-k+1)
    358 !hg READING CLOUD FIELDS ASWELL
    359       if(isec1(6).eq.246) then  !! CLWC  Cloud liquid water content
     361!ZHG READING CLOUD FIELDS ASWELL
     362      if(isec1(6).eq.246) then  !! CLWC  Cloud liquid water content [kg/kg]
    360363        clwch(i,j,nlev_ec-k+2,n)=zsec4(nxfield*(ny-j-1)+i+1)
    361364        readclouds = .true.
    362         !write(*,*) 'found water!'
     365!if (clwch(i,j,nlev_ec-k+2,n) .gt. 0)        write(*,*) 'readwind: found water!', clwch(i,j,nlev_ec-k+2,n)
    363366      endif
    364       if(isec1(6).eq.247) then  !! CIWC  Cloud ice water content
    365         ciwch(i,j,nlev_ec-k+2,n)=zsec4(nxfield*(ny-j-1)+i+1)
     367!      if(isec1(6).eq.247) then  !! CIWC  Cloud ice water content
     368!        ciwch(i,j,nlev_ec-k+2,n)=zsec4(nxfield*(ny-j-1)+i+1)
    366369        !write(*,*) 'found ice!'
    367       endif
    368 !hg end
     370!      endif
     371!ZHG end
    369372
    370373    end do
     
    422425    call shift_field(vvh,nxfield,ny,nuvzmax,nuvz,1,1)
    423426    call shift_field(wwh,nxfield,ny,nwzmax,nwz,1,1)
    424 !hg
     427!ZHG
    425428    call shift_field(clwch,nxfield,ny,nuvzmax,nuvz,2,n)
    426429    call shift_field(ciwch,nxfield,ny,nuvzmax,nuvz,2,n)
    427 !hg end
     430!ZHG end
    428431
    429432  endif
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG