This commit is contained in:
Jukka Aho
2017-06-28 13:58:09 +03:00
committed by Jukka Aho
parent 7a827e0a12
commit 0ec0b8ddef
+14
View File
@@ -0,0 +1,14 @@
# 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.Testing
@testset "get nodal field from boundary condition if geometry is not defined" begin
bc = Problem(Dirichlet, "bc without geometry", 3, "displacement")
bc.elements = [Element(Poi1, [1])]
@test bc("geometry", 0.0) == nothing
s = Solver(Linear, "test solver")
s.problems = [bc]
@test length(s("geometry", 0.0)) == 0
end