This still only works when the Basin upstream of a UserDemand has a level demand to define the source capacity of the basin
It makes sense that this flow from the Basin to the UserDemand also shows up in allocation_flow.arrow, which requires some refactoring. That is fine though, as that refactor is needed anyway for https://github.com/Deltares/Ribasim/issues/565, where we probably want to aggregate the allocation flows for output over the optimizations for all sources in stead of saving them per source
Fixes https://github.com/Deltares/Ribasim/issues/1545
Some notes on this PR:
Basin
upstream of aUserDemand
has a level demand to define the source capacity of the basinBasin
to theUserDemand
also shows up inallocation_flow.arrow
, which requires some refactoring. That is fine though, as that refactor is needed anyway for https://github.com/Deltares/Ribasim/issues/565, where we probably want to aggregate the allocation flows for output over the optimizations for all sources in stead of saving them per source