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 configurable seed for partitioning #224

Draft
wants to merge 7 commits into
base: develop
Choose a base branch
from

Conversation

fsimonis
Copy link
Member

Main changes of this PR

Based on #214

This PR adds a configurable seed to precice-aste-partition which defaults to the random number 2025.
This seed is then passed on to the metis for topology and scipy kmean2 for meshfree, making them deterministic.

Therefore, to change the partitioning, one now has to manually pass a different seed.

Author's checklist

  • I used the pre-commit hook and used pre-commit run --all to apply all available hooks.
  • I added a test to cover the proposed changes in our test suite.
  • I updated the documentation in docs/README.md.
  • I added a changelog entry in ./changelog-entries/ (create if necessary).
  • I updated potential breaking changes in the tutorial precice/tutorials/aste-turbine.

changelog-entries/214.md Show resolved Hide resolved
@fsimonis fsimonis marked this pull request as draft January 28, 2025 14: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.

2 participants