mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-10-03 14:47:55 +00:00
Make code 0.6 compatible (#128)
* running v0.6 conversion code proposed by @ovainola in #108. * change travis so that build is done using 0.6 * documentation is build from 0.6 * fix most of deprecation warnings * fix test to pass 0.6
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ using JuliaFEM.Testing
|
||||
@test isapprox(f, 1.0)
|
||||
@test 2*f == 2.0 # multiply by constant
|
||||
@test f(1.0) == 1.0 # time interpolation
|
||||
@test isapprox([2.0]''*f, 2.0) # wanted behavior?
|
||||
@test isapprox(reshape([2.0],1,1)*f, 2.0) # wanted behavior?
|
||||
end
|
||||
|
||||
@testset "discrete, variable, time invariant field" begin
|
||||
|
||||
@@ -59,7 +59,7 @@ end
|
||||
push!(s, p)
|
||||
get_field_assembly(s)
|
||||
@test s.ndofs == 0
|
||||
add!(p.assembly.K, [4], [4], [4.0]'')
|
||||
add!(p.assembly.K, [4], [4], reshape([4.0],1,1))
|
||||
get_field_assembly(s)
|
||||
@test s.ndofs == 4
|
||||
end
|
||||
@@ -70,8 +70,8 @@ end
|
||||
p1 = Problem(Dirichlet, "bc1", 2, "displacement")
|
||||
p2 = Problem(Dirichlet, "bc2", 2, "displacement")
|
||||
# third dofs constrained
|
||||
add!(p1.assembly.C2, [3], [3], [1.0]'')
|
||||
add!(p2.assembly.C2, [3], [4], [1.0]'')
|
||||
add!(p1.assembly.C2, [3], [3], reshape([1.0],1,1))
|
||||
add!(p2.assembly.C2, [3], [4], reshape([1.0],1,1))
|
||||
s.ndofs = 4
|
||||
push!(s, p1, p2)
|
||||
@test_throws ErrorException get_boundary_assembly(s)
|
||||
|
||||
Reference in New Issue
Block a user