updated JuliaFEM.jl

This commit is contained in:
Jukka Aho
2015-11-30 18:49:45 +02:00
parent 9e7e38b1cf
commit 6b32d364e5
4 changed files with 93 additions and 14 deletions
+5
View File
@@ -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