Skip to content

Commit

Permalink
add option B3
Browse files Browse the repository at this point in the history
let B term be zero when Al_bar <0
  • Loading branch information
Shixuan Zhang committed Feb 21, 2018
1 parent 8dd3921 commit 073aa09
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions components/cam/src/physics/cam/simple_condensation_model.F90
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,18 @@ subroutine simple_RKZ_tend(state, ptend, tcwat, qcwat, lcwat, ast, qmeold, &

term_B(:ncol,:pver) = - 0.5_r8*ltend(:ncol,:pver)


case(3)
! For testing only: Following Zhang et al. (2003), assume the in-cloud A_l
! equals the grid-box mean A_l.! Hence, - (\overline{A_l} - f \hat{A_l}) =
! - (1-f)\overline{A_l}.However, if overline{A_l} <0, term_B=0.0

term_B(:ncol,:pver) = - (1._r8 - ast(:ncol,:pver))*ltend(:ncol,:pver)

where( ltend(:ncol,:pver) .lt. 0._r8)
term_B(:ncol,:pver) = 0._r8
end where

case default
write(iulog,*) "Unrecognized value of rkz_term_B_opt:",rkz_term_B_opt,". Abort."
call endrun
Expand Down

0 comments on commit 073aa09

Please sign in to comment.