Skip to content

Commit

Permalink
Fix indexing of ispolygon landunit logical.
Browse files Browse the repository at this point in the history
Logical test of lun_pp%ispolygon needed to have
column specified in a place where the whole
vector had previously been specified.
  • Loading branch information
rfiorella committed May 15, 2024
1 parent 4261be6 commit 748f3d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/elm/src/biogeophys/ActiveLayerMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ subroutine alt_calc(num_soilc, filter_soilc, &

! update ice wedge polygon microtopographic parameters if in polygonal ground
! TODO: need to retrieve landunit this column is on.
if (lun_pp%ispolygon) then
if (lun_pp%ispolygon(c)) then
if (lun_pp%polygontype(c) .eq. ilowcenpoly) then
rmax(c) = 0.4_r8
vexc(c) = 0.2_r8
Expand Down

0 comments on commit 748f3d5

Please sign in to comment.