Skip to content

Use FlowDemand demand as minimum Pump/Outlet flow when allocation is not active - #2506

Merged
visr merged 4 commits into
mainfrom
flow_demand_with_allocation_off
Aug 1, 2025
Merged

Use FlowDemand demand as minimum Pump/Outlet flow when allocation is not active#2506
visr merged 4 commits into
mainfrom
flow_demand_with_allocation_off

Conversation

@SouthEndMusic

Copy link
Copy Markdown
Collaborator

Fixes #2496.

@SouthEndMusic
SouthEndMusic marked this pull request as draft July 31, 2025 13:18
@SouthEndMusic
SouthEndMusic marked this pull request as ready for review July 31, 2025 14:05
@SouthEndMusic
SouthEndMusic requested a review from visr July 31, 2025 14:05

@visr visr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! One comment.

Comment thread core/test/allocation_test.jl Outdated
Comment on lines +747 to +748
model = Ribasim.run(toml_path)
@test all(q -> isapprox(q, 1e-3; rtol = 1e-4), Ribasim.flow_table(model).flow_rate)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would pass if the model crashes and the flow_rate is empty. Perhaps you can check that the model is successful and the data not empty?

@visr
visr merged commit df3d0cd into main Aug 1, 2025
19 checks passed
@visr
visr deleted the flow_demand_with_allocation_off branch August 1, 2025 07:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FlowDemand behavior with allocation off

2 participants