most important tests pass now

This commit is contained in:
Jukka Aho
2016-05-22 17:00:01 +03:00
parent d6dea85b9d
commit 24656eb243
9 changed files with 107 additions and 67 deletions
+6
View File
@@ -68,10 +68,12 @@ function get_integration_points(element::LineElement, ::Type{Val{3}})
[ (w[i], [xi[i]]) for i=1:3 ]
end
#=
function get_integration_points{E<:LineElement}(element::Element{E}, ::Type{Val{3}})
w, xi = get_integration_points(Val{3})
[ (w[i], [xi[i]]) for i=1:3 ]
end
=#
function get_integration_points(element::Quad4, ::Type{Val{2}})
w, xi = get_integration_points(Val{2})
@@ -106,6 +108,10 @@ function get_integration_points(element::Hex8)
get_integration_points(element, Val{2})
end
function get_integration_points{E}(element::Element{E}, ::Type{Val{3}})
get_integration_points(element.properties, Val{3})
end
### triangular and tetrahedral elements
# http://math2.uncc.edu/~shaodeng/TEACHING/math5172/Lectures/Lect_15.PDF