Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cam6_4_059: issue 1212 bug fix (cloud frac ice+liquid) #1230

Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions doc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
One-line Summary: cloud frac bug in nucleate_ice_cam.F90

Purpose of changes (include the issue number and title text for each relevant GitHub issue):

ice cloud fraction not set correctly (set to ice+liquid but should only be ice). (Github issue #1212)

===============================================================

Tag name: cam6_4_056
Expand Down
12 changes: 5 additions & 7 deletions src/physics/cam/nucleate_ice_cam.F90
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ module nucleate_ice_cam
naai_hom_idx = -1

integer :: &
ast_idx = -1
aist_idx = -1

integer :: &
qsatfac_idx = -1
Expand Down Expand Up @@ -360,7 +360,7 @@ subroutine nucleate_ice_cam_init(mincld_in, bulk_scale_in, pbuf2d, aero_props)
mincld)

! get indices for fields in the physics buffer
ast_idx = pbuf_get_index('AST')
aist_idx = pbuf_get_index('AIST')

end subroutine nucleate_ice_cam_init

Expand Down Expand Up @@ -400,8 +400,7 @@ subroutine nucleate_ice_cam_calc( &
real(r8), pointer :: pmid(:,:) ! pressure at layer midpoints (pa)

real(r8), pointer :: aer_mmr(:,:) ! aerosol mass mixing ratio

real(r8), pointer :: ast(:,:)
real(r8), pointer :: aist(:,:)
real(r8) :: icecldf(pcols,pver) ! ice cloud fraction
real(r8), pointer :: qsatfac(:,:) ! Subgrid cloud water saturation scaling factor.

Expand Down Expand Up @@ -509,9 +508,8 @@ subroutine nucleate_ice_cam_calc( &
end if

itim_old = pbuf_old_tim_idx()
call pbuf_get_field(pbuf, ast_idx, ast, start=(/1,1,itim_old/), kount=(/pcols,pver,1/))

icecldf(:ncol,:pver) = ast(:ncol,:pver)
call pbuf_get_field(pbuf, aist_idx, aist, start=(/1,1,itim_old/), kount=(/pcols,pver,1/))
icecldf(:ncol,:pver) = aist(:ncol,:pver)

! naai and naai_hom are the outputs from this parameterization
call pbuf_get_field(pbuf, naai_idx, naai)
Expand Down
Loading