data types defined

This commit is contained in:
Jukka Aho
2015-10-09 01:44:08 +03:00
parent 095ff09a48
commit e0d974b3a9
9 changed files with 787 additions and 454 deletions
+3 -3
View File
@@ -10,9 +10,9 @@ get_equation(pr::Type{Problem}, el::Type{Element}) = nothing
"""
Add new element to problem
"""
function add_element!(pr::Problem, el::Element)
eq = get_equation(typeof(pr), typeof(el))
push!(pr.equations, eq(el))
function add_element!(problem::Problem, element::Element)
equation = get_equation(typeof(problem), typeof(element))
push!(problem.equations, equation(element))
end
"""