-
Notifications
You must be signed in to change notification settings - Fork 9
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
Ferrite 1.0 compat #103
base: master
Are you sure you want to change the base?
Ferrite 1.0 compat #103
Conversation
src/utils.jl
Outdated
function Ferrite.shape_value(ipv::VectorizedInterpolation{4, shape}, ξ::Tensors.Vec{2, T}, I::Int) where {shape <: Ferrite.AbstractRefShape{2}, T} | ||
i0, c0 = divrem(I - 1, 4) | ||
i = i0 + 1 | ||
c = c0 + 1 | ||
v = Ferrite.shape_value(ipv.ip, ξ, i) | ||
return SVector(ntuple(j -> j == c ? v : zero(v), 4)) | ||
end | ||
|
||
function field_offset(dh::Ferrite.DofHandler, field_idx::Int) | ||
offset = 0 | ||
for i in 1:(field_idx-1) | ||
offset += Ferrite.getnbasefunctions(dh.field_interpolations[i])::Int * dh.field_dims[i] | ||
end | ||
return offset | ||
function Ferrite.shape_value(ipv::VectorizedInterpolation{9, shape}, ξ::Tensors.Vec{3, T}, I::Int) where {shape <: Ferrite.AbstractRefShape{3}, T} | ||
i0, c0 = divrem(I - 1, 9) | ||
i = i0 + 1 | ||
c = c0 + 1 | ||
v = Ferrite.shape_value(ipv.ip, ξ, i) | ||
return SVector(ntuple(j -> j == c ? v : zero(v), 9)) | ||
end |
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.
…ctor valued tests to track down the bug in triangle gradients.
We need to add JuliaDocs/Documenter.jl#2211 |
Found today that |
…n for some reason when there is also a 2D version of it.
Reminder for myself - There is some kind of regression in the Makie API behavior which I need to investigate. MWE:
|
There is some issue regarding the depth with the interactivity. Other than that good from my side. @koehlerson if you agree with the changes we can merge and bump. |
Anything in particular? Will look into that this week |
CI changes and some changes in utils.jl (e.g. I removed ε as it caused issues). Everything else should be a very mechanistic update. |
Okay I need to fix this first. |
while checking if everything interactive works, I stumbled across this problem: #131 |
In this branch and PR I develop the preparation for the upcoming Ferrite release.
TODOs
transfer_quadrature_face_to_cell
with the Ferrite internal onegetgrid
Post-Merge