Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JordiManyer committed Jan 2, 2025
1 parent 6f50ebb commit 7d40d1b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/FESpaces/Pullbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ function get_cell_dof_basis(
)
cell_ref_dofs = lazy_map(get_dof_basis, cell_reffe)
cell_phy_dofs = lazy_map(inverse_map(Pullback(pushforward)), cell_ref_dofs, cell_args...)
return lazy_map(linear_combination, cell_change, cell_phy_dofs) # TODO: Inverse
return lazy_map(linear_combination, cell_change, cell_phy_dofs) # TODO: Inverse and transpose
end

function get_cell_shapefuns(
Expand Down
1 change: 0 additions & 1 deletion src/ReferenceFEs/Pullbacks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,6 @@ struct CoVariantPiolaMap <: Pushforward end
function evaluate!(
cache, ::CoVariantPiolaMap, v_ref::Number, Jt::Number
)
# we right-multiply to compute the gradient correctly
return v_ref transpose(inv(Jt))
end

Expand Down
4 changes: 2 additions & 2 deletions src/ReferenceFEs/ReferenceFEInterfaces.jl
Original file line number Diff line number Diff line change
Expand Up @@ -390,11 +390,11 @@ associated with the dof basis `predofs` and the basis `shapefuns`.
It is equivalent to
change = inv(evaluate(predofs,shapefuns))
change = transpose(inv(evaluate(predofs,shapefuns)))
linear_combination(change,predofs) # i.e. transpose(change)*predofs
"""
function compute_dofs(predofs,shapefuns)
change = inv(evaluate(predofs,shapefuns))
change = transpose(inv(evaluate(predofs,shapefuns)))
linear_combination(change,predofs)
end

Expand Down

0 comments on commit 7d40d1b

Please sign in to comment.