Skip to content

Commit

Permalink
Fixed null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
rgknox committed Dec 18, 2024
1 parent 3fbe03b commit efb14ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion biogeochem/EDPhysiologyMod.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1028,7 +1028,7 @@ subroutine phenology( currentSite, bc_in )
temp_wgt = temp_wgt + cpatch%total_canopy_area
cpatch => cpatch%younger
end do
if(cpatch%total_canopy_area>nearzero)then
if(temp_wgt>nearzero)then
temp_in_C = temp_in_C/temp_wgt - tfrz
else
! If there is no canopy area, we use the veg temperature
Expand Down

0 comments on commit efb14ac

Please sign in to comment.