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

Catch inexact rounding error #26

Merged

Conversation

SouthEndMusic
Copy link
Member

Fixes #25

@ChrisRackauckas ChrisRackauckas merged commit f337f84 into SciML:main Sep 4, 2024
12 of 14 checks passed
SouthEndMusic added a commit to Deltares/Ribasim that referenced this pull request Sep 4, 2024
These changes are needed for running the `De Dommel` model for Ribasim
NL and were requested by Neeltje. The main change is that
`ManningResistance` has low storage factors now, which is important to
have if the connected basins have different bottom levels.

I made an unified approach for low storage factors of `LinearResistance`
and `ManningResistance`, where the former already had low storage
factors for both connected basins. That however leads to weird behavior
where water cannot flow into an empty basin via the resistance node, so
now I made it so that the reduction factor is based on the storage of
the upstream basin as defined by the flow direction. This feels a bit
discontinuous but I think it's fine.

I also fixed an upstream issue in `FindFirstFunctions`, for now the
manifest points at the branch with the fix:
SciML/FindFirstFunctions.jl#26.
SouthEndMusic added a commit to Deltares/Ribasim that referenced this pull request Sep 4, 2024
The new version contains my upstream fix
SciML/FindFirstFunctions.jl#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.

Guesser can crash on inaccurate rounding
2 participants