Implement new function add_elements!

Add new elements to the problem.
This commit is contained in:
Rapo
2017-08-16 14:09:54 +03:00
committed by Jukka Aho
parent 1966b7f894
commit 367c4711b3
3 changed files with 26 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using Base.Test
@testset "add elements to problem" begin
problem = Problem(Elasticity, "test", 2)
element = Element(Quad4, [1, 2, 3, 4])
elements = [element]
add_elements!(problem, elements)
@test problem.elements[1] == element
end