Skip to content

Commit c01199a

Browse files
ADCALC.py -- initialize omat for multiple exits
1 parent a399327 commit c01199a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

HSP2/ADCALC.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def advect(imat, conc, nexits, vols, vol, srovol, erovol, sovol, eovol):
141141
# eovol = EOVOL[loop,:]
142142

143143
omat = 0.0
144+
if nexits > 1:
145+
omat = zeros((nexits))
144146
if vol > 0.0: # reach/res contains water
145147
concs = conc
146148
conc = (imat + concs * (vols - srovol)) / (vol + erovol) # material entering during interval, weighted volume of outflow based on conditions at start of ivl (srovol), and weighted volume of outflow based on conditions at end of ivl (erovol)

0 commit comments

Comments
 (0)