Skip to content

Commit

Permalink
Merge pull request #19 from GEOS-ESM/feature/mathomp4/#15-jason-32-moist
Browse files Browse the repository at this point in the history
Fixes #15. Update Moist to Jason-3_2
  • Loading branch information
sdrabenh authored Aug 5, 2019
2 parents 46a217b + d355389 commit b48cdcc
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5685,6 +5685,7 @@ subroutine MOIST_DRIVER(IM,JM,LM, RC)
real , dimension(IM,JM) :: CNV_FRACTION
real :: CNV_FRACTION_MIN
real :: CNV_FRACTION_MAX
real :: GF_MIN_AREA

real :: cNN, cNN_OCEAN, cNN_LAND, CONVERT

Expand Down Expand Up @@ -7201,6 +7202,9 @@ subroutine MOIST_DRIVER(IM,JM,LM, RC)
if(associated(Q600 )) Q600 = QV600
if(associated(RH600 )) RH600 = RHat600

call MAPL_GetResource(STATE,GF_MIN_AREA, 'GF_MIN_AREA:', DEFAULT= 1.e6, RC=STATUS)
VERIFY_(STATUS)

K0 = LM
ICMIN = max(1,count(PREF < PMIN_DET))
KCBLMIN = count(PREF < PMIN_CBL)
Expand Down Expand Up @@ -7772,7 +7776,11 @@ subroutine MOIST_DRIVER(IM,JM,LM, RC)

! WMP
! Modify AREA (m^2) here so GF scale dependence has a CNV_FRACTION dependence
GF_AREA = (1.e6)*CNV_FRACTION + AREA*(1.0-CNV_FRACTION)
if (GF_MIN_AREA > 0) then
GF_AREA = GF_MIN_AREA*CNV_FRACTION + AREA*(1.0-CNV_FRACTION)
else
GF_AREA = AREA
endif
! WMP

!- call GF/GEOS5 interface routine
Expand Down

0 comments on commit b48cdcc

Please sign in to comment.