mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-21 02:18:56 +00:00
fixed element initialization
This commit is contained in:
@@ -36,7 +36,7 @@ function size(element::Element{MyQuad4})
|
||||
end
|
||||
|
||||
@testset "test new element" begin
|
||||
el = Element(MyQuad4)
|
||||
el = Element(MyQuad4, Int[])
|
||||
el["geometry"] = Vector{Float64}[[0.0,0.0], [1.0,0.0], [1.0,1.0], [0.0,1.0]]
|
||||
el["displacement"] = Vector{Float64}[[0.0,0.0], [0.0,0.0], [1.0,0.0], [0.0,0.0]]
|
||||
@test isapprox(el("geometry", [0.0, 0.0], 0.0), [0.5, 0.5])
|
||||
|
||||
Reference in New Issue
Block a user