-
Notifications
You must be signed in to change notification settings - Fork 114
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
Replace mutable structs using Adapt
#2050
Conversation
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. |
Looks like it is still causing a bunch of errors😢 |
An alternative would be to use |
Thanks @vchuravy let me have a try :) |
Not sure whether doing this on my repo or here would be better - let me try both ways and compare. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2050 +/- ##
=======================================
Coverage 96.32% 96.32%
=======================================
Files 470 470
Lines 37447 37447
=======================================
Hits 36070 36070
Misses 1377 1377
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
You can also continue with your previous approach and make the semidiscretization mutable. Maybe it's worth comparing all three approaches to see what works best in terms of code complexity and performance. |
@ranocha Sure |
Temporary fix by #2052 - we will see whether that solution can be permanent. |
Mutable structs cannot be compiled to bits type on GPU. Using
Adapt
to translate the mutable structs to an immutable struct can be a good way to address this.