mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-24 19:19:54 +00:00
Implement new function add_elements!
Add new elements to the problem.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user