Skip to content

Commit 384a7ce

Browse files
committed
fixes indexing error in pbl height finder
1 parent 6888772 commit 384a7ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/eam/src/physics/cam/od_common.F90

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ function pblh_get_level_idx(height_array,pblheight)
394394
!get the pblh level index and return
395395
do k = 2, pver
396396
if((pblheight >= height_array(k).and.pblheight <height_array(k-1)))then
397-
pblh_get_level_idx = k - 1
397+
pblh_get_level_idx = k
398398
found=.true.
399399
return
400400
endif

0 commit comments

Comments
 (0)