-
Notifications
You must be signed in to change notification settings - Fork 109
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
Make TreeMesh
type general
#2129
Make TreeMesh
type general
#2129
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. |
Maybe good point in time to combine this with #1194 |
👍 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2129 +/- ##
==========================================
- Coverage 96.36% 96.36% -0.00%
==========================================
Files 480 480
Lines 38028 38042 +14
==========================================
+ Hits 36645 36657 +12
- Misses 1383 1385 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Also in parallel_tree and serial_tree there are some Trixi.jl/src/meshes/parallel_tree.jl Lines 190 to 204 in 8743712
Basically t.coordinates[:, first:last] .= one(typeof(t.coordinates[1, 1]) So it would be better to make |
👍👍👍 |
That should happen right now? julia> foo!(x) = (x .= NaN; x)
julia> foo!(zeros(Float64, 10))
10-element Vector{Float64}:
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
julia> foo!(zeros(Float32, 10))
10-element Vector{Float32}:
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
julia> foo!(zeros(Float16, 10))
10-element Vector{Float16}:
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
NaN
julia> foo!(zeros(Float16, 10))[1]
NaN16
julia> foo!(zeros(Float32, 10))[1]
NaN32
julia> foo!(zeros(Float64, 10))[1]
NaN |
@huiyuxie If you like, please review this PR first and request my review when you're done. |
👌and what is your |
Or we could also keep one interface for each - Which way would you prefer @DanielDoehring @ranocha ? |
Sorry, fixed above |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Looks quite good already 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks
No description provided.