Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Cinzia Mazzetti committed May 24, 2024
1 parent baf178d commit 58688fe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def solve1Pixel(pix, discharge_avg, discharge, lateral_inflow, constant,\
# volume of water in channel at end of computation step
channel_volume_end = a_dx * discharge[pix]**beta

# mass water balance to calc average outflow
# integration on control volume to calc average outflow (channel water mass balance)
discharge_avg[pix] = upstream_inflow_avg + lateral_inflow[pix] + (channel_volume_start[pix] - channel_volume_end[pix]) * inv_time_delta

# avoid negative average discharge
Expand Down

0 comments on commit 58688fe

Please sign in to comment.