Skip to content

Commit

Permalink
issue DSSAT#153
Browse files Browse the repository at this point in the history
- needs to be tested
  • Loading branch information
chporter committed Oct 1, 2021
1 parent e96e988 commit 228995c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion Soil/SoilUtilities/SOILDYN.for
Original file line number Diff line number Diff line change
Expand Up @@ -1210,11 +1210,19 @@ C tillage and rainfall kinetic energy
ENDIF
DUL_SOM(L) = DUL_INIT(L) + dDUL_SOM

! Issue #153
IF (DUL_SOM(L) .GT. SAT(L) - 0.10) THEN
DUL_SOM(L) = SAT(L) - 0.10
ENDIF

! Lower limit
dLL_SOM = 0.002228 * dOC + 0.02671 * dBD_SOM
LL_SOM(L) = LL_INIT(L) + dLL_SOM

! IF (L==1) WRITE(1000,*)dOC, dBD_SOM, dLL_SOM, LL_SOM(1)
! Issue #153
IF (LL_SOM(L) .GT. DUL_SOM(L) - 0.10) THEN
LL_SOM(L) = DUL_SOM(L) - 0.10
ENDIF
ENDIF
ENDDO
ENDIF
Expand Down

0 comments on commit 228995c

Please sign in to comment.