Skip to content

Improved kdtree and some refactoring#19

Merged
koldunovn merged 13 commits intoCliDyn:mainfrom
k202077:improved_kdtree
Mar 11, 2026
Merged

Improved kdtree and some refactoring#19
koldunovn merged 13 commits intoCliDyn:mainfrom
k202077:improved_kdtree

Conversation

@k202077
Copy link
Copy Markdown
Collaborator

@k202077 k202077 commented Mar 10, 2026

  • Improves kdtree implementation
    • improved algorithm
    • threading support
  • various code refactoring

Moritz Hanke added 13 commits March 10, 2026 14:39
- Introduced kdtree_set_max_threads function to set the maximum number of threads.
- Updated get_max_threads function to determine effective thread count from user input, environment variable, or default value.
- Modified kdtree_create to use the resolved thread count for tree construction.
- Added CLI option for specifying thread count in both ushow and uterm.
…st files for improved type management and consistency.
@koldunovn
Copy link
Copy Markdown
Collaborator

Looks good to me, works on my test cases. The feeling is that KDtree is x3 faster. Thanks a ton, Moritz!

@koldunovn koldunovn merged commit 5c41221 into CliDyn:main Mar 11, 2026
4 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.

2 participants