This commit is contained in:
Jukka Aho
2016-06-02 22:58:54 +03:00
parent 07812f3bc7
commit bf9b44e057
9 changed files with 253 additions and 68 deletions
+1 -8
View File
@@ -1,14 +1,7 @@
# This file is a part of JuliaFEM.
# License is MIT: see https://github.com/JuliaFEM/JuliaFEM.jl/blob/master/LICENSE.md
using JuliaFEM
using JuliaFEM.Test
using JuliaFEM.Core: Quad4, update!
@testset "add new discrete constant time-variant field and interpolate it" begin
element = Quad4([1, 2, 3, 4])
element["my field"] = (0.0 => 0.0, 1.0 => 1.0)
@test isapprox(element("my field", [0.0, 0.0], 0.5), 0.5)
update!(element, "my field 2", 0.0 => 0.0, 1.0 => 1.0)
@test isapprox(element("my field 2", [0.0, 0.0], 0.5), 0.5)
end