Skip to content

Commit 6c22e03

Browse files
committed
Fixed bug on waterbalance to avoid double counting irrigation
1 parent ada22d2 commit 6c22e03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pcse/soil/classic_waterbalance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ def calc_rates(self, day, drv):
441441
RINPRE = RINPRE + r.RIRR + s.SS
442442
if s.SS > 0.1:
443443
# with surface storage, infiltration limited by SOPE
444-
AVAIL = RINPRE + r.RIRR - r.EVW
444+
AVAIL = RINPRE - r.EVW
445445
RINPRE = min(p.SOPE, AVAIL)
446446

447447
RD = self._determine_rooting_depth()

0 commit comments

Comments
 (0)