Skip to content

Use relaxed square root for ManningResistance#1750

Merged
SouthEndMusic merged 4 commits intomainfrom
let_manning_chill_out
Aug 22, 2024
Merged

Use relaxed square root for ManningResistance#1750
SouthEndMusic merged 4 commits intomainfrom
let_manning_chill_out

Conversation

@SouthEndMusic
Copy link
Collaborator

Fixes #1743.

@SouthEndMusic SouthEndMusic requested a review from Huite August 22, 2024 11:58
@SouthEndMusic SouthEndMusic requested a review from visr August 22, 2024 12:27
@Huite
Copy link
Contributor

Huite commented Aug 22, 2024

Looks good, and it's immediately clear that only at $\Delta h$ within 1 mm things are getting a bit modified!

It's probably a lot cheaper to compute than a transcendental function as well!

@SouthEndMusic SouthEndMusic merged commit e7868dc into main Aug 22, 2024
@SouthEndMusic SouthEndMusic deleted the let_manning_chill_out branch August 22, 2024 12:42
@verheem verheem mentioned this pull request Jun 12, 2025
verheem added a commit that referenced this pull request Jun 12, 2025
Fixes #2356 by reverting to a previous implementation first introduced
at #1750

Achieved performance gain:

HollandseDelta_parameterized_2025_6_0
relaxed_root_old = Computation time: 1 minute, 17 seconds, 392
milliseconds
relaxed_root = Computation time: 3 minutes, 9 seconds, 247 milliseconds

---------

Co-authored-by: Martijn Visser <mgvisser@gmail.com>
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.

ManningResistance causes unexpected oscillations

3 participants