mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-02 14:23:58 +00:00
updated JuliaFEM.jl
This commit is contained in:
@@ -148,6 +148,11 @@ function call(element::Element, field_name::ASCIIString, time::Number)
|
||||
return element[field_name](time)
|
||||
end
|
||||
|
||||
function get_dbasis{E<:AbstractElement}(::Type{E}, xi::Vector)
|
||||
basis(xi) = vec(get_basis(E, xi))
|
||||
return ForwardDiff.jacobian(basis, xi, cache=autodiffcache)'
|
||||
end
|
||||
|
||||
function get_basis{E}(element::Element{E}, ip::IntegrationPoint)
|
||||
return get_basis(E, ip.xi)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user