mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-08-06 04:21:33 +00:00
683c0a03e6
Add new elements to the problem.
14 lines
389 B
Julia
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
|