Skip to content

Commit

Permalink
Fixing the init_pdf_params_api calls, the indices were incorrect. Als…
Browse files Browse the repository at this point in the history
…o renaming them for clarity. larson-group/e3sm#7
  • Loading branch information
huebleruwm authored and singhbalwinder committed Jul 19, 2019
1 parent 4344fb6 commit 77d3833
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/cam/src/physics/cam/clubb_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ subroutine clubb_ini_cam(pbuf2d, dp1_in)
character(len=128) :: errstring ! error status for CLUBB init

integer :: err_code, iunit ! Code for when CLUBB fails
integer :: i, j, k, l ! Indices
integer :: i, j, k, l, idx_chunk, idx_pcols ! Indices
integer :: read_status ! Length of a string
integer :: ntop_eddy ! Top interface level to which eddy vertical diffusion is applied ( = 1 )
integer :: nbot_eddy ! Bottom interface level to which eddy vertical diffusion is applied ( = pver )
Expand All @@ -583,10 +583,10 @@ subroutine clubb_ini_cam(pbuf2d, dp1_in)
pdf_params_chnk(pcols,begchunk:endchunk), &
pdf_params_zm_chnk(pcols,begchunk:endchunk) )

do i = begchunk, endchunk
do j = 1, pcols
call init_pdf_params_api( pverp, pdf_params_chnk(i,j) )
call init_pdf_params_api( pverp, pdf_params_zm_chnk(i,j) )
do idx_chunk = begchunk, endchunk
do idx_pcols = 1, pcols
call init_pdf_params_api( pverp, pdf_params_chnk(idx_pcols,idx_chunk) )
call init_pdf_params_api( pverp, pdf_params_zm_chnk(idx_pcols,idx_chunk) )
end do
end do

Expand Down

0 comments on commit 77d3833

Please sign in to comment.