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
Changes from 1 commit
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
13 changes: 6 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,9 @@ 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) = ast(:ncol,:pver)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we go ahead and remove this commented out line?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

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