mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-03 22:57:57 +00:00
surface normals
This commit is contained in:
+4
-4
@@ -43,8 +43,8 @@ function get_detJ(eq::Equation, ip::IntegrationPoint)
|
||||
end
|
||||
function get_detJ(el::Element, ip::IntegrationPoint)
|
||||
J = get_Jacobian(el, ip.xi)
|
||||
n, m = size(J)
|
||||
if n != m # for manifolds
|
||||
ls = length(size(J))
|
||||
if ls == 1 # for manifolds
|
||||
return norm(J)
|
||||
else
|
||||
return det(J)
|
||||
@@ -52,8 +52,8 @@ function get_detJ(el::Element, ip::IntegrationPoint)
|
||||
end
|
||||
function get_detJ(el::Element, xi::Vector)
|
||||
J = get_Jacobian(el, xi)
|
||||
n, m = size(J)
|
||||
if n != m # for manifolds
|
||||
ls = length(size(J))
|
||||
if ls == 1 # for manifolds
|
||||
return norm(J)
|
||||
else
|
||||
return det(J)
|
||||
|
||||
Reference in New Issue
Block a user