mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-21 18:33:36 +00:00
code refactoring
This commit is contained in:
@@ -25,3 +25,9 @@ end
|
||||
@test f.data == 2.0
|
||||
end
|
||||
|
||||
@testset "test field defined using function" begin
|
||||
g(xi, t) = xi[1]*t
|
||||
f = Field(g)
|
||||
v = f([1.0], 2.0)
|
||||
@test isapprox(v, 2.0)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user