Skip to content

Commit

Permalink
Initialize unset local variables in CNAllocationMod
Browse files Browse the repository at this point in the history
  • Loading branch information
jqyin committed Aug 22, 2017
1 parent 1bcd51d commit f5dce7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions components/clm/src/biogeochem/CNAllocationMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -3411,6 +3411,9 @@ subroutine CNAllocation3_PlantCNPAlloc (bounds , &
curmr_ratio = curmr / mr
xsmr_ratio = 1 - curmr_ratio
availc(p) = gpp(p)
else
curmr_ratio = 0._r8
xsmr_ratio = 0._r8
end if
else
if (mr > 0._r8 .and. gpp(p) <= mr) then
Expand All @@ -3423,6 +3426,9 @@ subroutine CNAllocation3_PlantCNPAlloc (bounds , &
curmr_ratio = curmr / mr
xsmr_ratio = 0
availc(p) = gpp(p) - mr
else
curmr_ratio = 0._r8
xsmr_ratio = 0._r8
end if
end if

Expand Down

0 comments on commit f5dce7f

Please sign in to comment.