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

Use fillsinks_hybrid #99

Merged
merged 6 commits into from
Dec 6, 2024
Merged

Use fillsinks_hybrid #99

merged 6 commits into from
Dec 6, 2024

Conversation

wkearn
Copy link
Contributor

@wkearn wkearn commented Dec 5, 2024

This adds a hybrid option to GridObject.fillsinks and FlowObject that dispatches to the hybrid morphological reconstruction. My experiments suggest that this is almost always faster than the sequential reconstruction, so hybrid=True is the default, which chooses fillsinks_hybrid.

Closes #71

The default is to use the hybrid algorithm, which should be faster in
most cases.
This is otherwise identical to the implementation in GridObject, but
it also uses the queue array that it allocates as the heap for gwdt,
so it allocates the queue regardless of the value of hybrid.
@wkearn wkearn merged commit b1505d9 into TopoToolbox:main Dec 6, 2024
7 checks passed
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.

Enable switching between libtopotoolbox fillsinks and fillsinks_hybrid
1 participant