heat solver tests etc

This commit is contained in:
Jukka Aho
2016-07-03 05:01:18 +03:00
parent d02d9c804d
commit b070f21aab
19 changed files with 944 additions and 299 deletions
+11 -1
View File
@@ -266,10 +266,14 @@ function update_elements!{P<:BoundaryProblem}(problem::Problem{P}, u, la)
end
end
function get_elements(problem)
function get_elements(problem::Problem)
return problem.elements
end
function length(problem::Problem)
return length(problem.elements)
end
function update!(problem::Problem, field_name::ASCIIString, field)
update!(problem.elements, field_name, field)
end
@@ -297,6 +301,12 @@ function push!(problem::Problem, elements::Vector)
push!(problem.elements, elements...)
end
function push!(problem::Problem, elements_::Vector...)
for elements in elements_
push!(problem.elements, elements...)
end
end
function get_gdofs(element::Element, dim::Int)
conn = get_connectivity(element)
if length(conn) == 0