Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add max_downstream_level and gravity flow to TabulatedRatingCurve #1795

Merged
merged 4 commits into from
Sep 9, 2024

Conversation

visr
Copy link
Member

@visr visr commented Sep 3, 2024

Fixes #1789.

@visr visr marked this pull request as ready for review September 5, 2024 14:59
Copy link
Member Author

Choose a reason for hiding this comment

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

This raises the upstream level to avoid reduction factors affecting the tests.

Copy link
Member Author

Choose a reason for hiding this comment

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

The Basins upstream of the TabulatedRatingCurve now retain more water as the downstream levels rise, and the water level difference goes to 0.

@visr visr requested a review from SouthEndMusic September 5, 2024 15:02
@@ -180,7 +180,7 @@ end

jac_prototype_expected = spzeros(Bool, 4, 4)
jac_prototype_expected[1:2, 1:2] .= true
jac_prototype_expected[3:4, 2:4] .= true
jac_prototype_expected[2:4, 2:4] .= true
Copy link
Member Author

Choose a reason for hiding this comment

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

Sorry performance.

Copy link
Collaborator

@SouthEndMusic SouthEndMusic left a comment

Choose a reason for hiding this comment

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

Good stuff

@SouthEndMusic SouthEndMusic merged commit 104e738 into main Sep 9, 2024
27 checks passed
@SouthEndMusic SouthEndMusic deleted the trc-redux branch September 9, 2024 09:26
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.

Reduce flow over TabulatedRatingCurve to 0 as downstream level exceeds upstream
2 participants