Implement Trixi.Threaded()#3003
Open
vchuravy wants to merge 4 commits into
Open
Conversation
Contributor
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3003 +/- ##
==========================================
- Coverage 97.13% 97.12% -0.01%
==========================================
Files 625 625
Lines 48514 48518 +4
==========================================
+ Hits 47122 47123 +1
- Misses 1392 1395 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ranocha
reviewed
May 8, 2026
Member
ranocha
left a comment
There was a problem hiding this comment.
My suggestion would be
thread_preference()
Why did you not follow "your" suggestion?
…e-exporting FastBroadcast Replaces the `const Threaded` alias (which simply forwarded DiffEqBase/FastBroadcast types) with a Trixi-owned function that reads `_PREFERENCE_THREADING`. When the backend is `:serial`, `Trixi.Threaded()` now returns the non-threaded value (`Serial()`/`False()`), so users who have disabled Polyester for Trixi cannot accidentally pass a threading argument that contradicts their preference. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements #2997 (comment)
I am not happy with the name
Threadedsince it is the one "owned" by FastBroadcast.jl,but I am also too tired to come up with a better name.
Talking with @ranocha in person
Trixi.Threaded()is fine as long as we don't export it.Replaces #2997