Files
JuliaFEM.jl/test/test_add_elements.jl
T
Rapo 683c0a03e6 Implement new function add_elements!
Add new elements to the problem.
2017-08-16 17:20:55 +03:00

14 lines
389 B
Julia

# 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