Skip to content

Commit

Permalink
Use the grids geometric interpolation in transfer solution
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed Oct 10, 2024
1 parent fb1546c commit 041b32c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,8 @@ function transfer_solution(plotter::MakiePlotter{dim,DH,T}, u::Vector; field_nam
for sdh in getsubdofhandlers(dh,field_name)
cellset_ = collect(sdh.cellset)
ip_field = Ferrite.getfieldinterpolation(sdh,field_name)
pv = Ferrite.PointValues(ip_field; update_gradients=false)
ip_geo = Ferrite.geometric_interpolation(Ferrite.getcelltype(sdh))
pv = Ferrite.PointValues(ip_field, ip_geo; update_gradients=false)
field_dim = Ferrite.n_components(dh, field_name)
ref_shape = Ferrite.getrefshape(ip_field)
val_buffer = Ferrite.reference_shape_value(ip_field, ξinside, 1)
Expand Down

0 comments on commit 041b32c

Please sign in to comment.