mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-19 17:58:53 +00:00
ambiguous warning of dbasis fixed
This commit is contained in:
+2
-4
@@ -126,13 +126,11 @@ function update!(elements::Vector, field_name::ASCIIString, data)
|
||||
end
|
||||
|
||||
""" Evaluate partial derivatives of basis functions using ForwardDiff. """
|
||||
function get_dbasis(element::Element, xi::Vector, time)
|
||||
function get_dbasis(element::Element, ip, time)
|
||||
xi = isa(ip, IP) ? ip.coords : ip
|
||||
basis(xi) = vec(get_basis(element, xi, time))
|
||||
return ForwardDiff.jacobian(basis, xi, cache=autodiffcache)'
|
||||
end
|
||||
function get_dbasis(element::Element, ip::IP, time)
|
||||
get_dbasis(element, ip.coords, time)
|
||||
end
|
||||
|
||||
""" Check existence of field. """
|
||||
function haskey(element::Element, field_name)
|
||||
|
||||
Reference in New Issue
Block a user