Change coords field type from Point to Tuple

Change to Tuple, Array is allocating memory.
This commit is contained in:
Jukka Aho
2017-08-13 21:56:52 +03:00
parent 681d53ee9a
commit b6b0bc3f55
5 changed files with 15 additions and 9 deletions
+2 -1
View File
@@ -5,7 +5,8 @@ using JuliaFEM
using JuliaFEM.Testing
@testset "test integration point" begin
ip = IP(1, 1.0, sqrt(1.0/3.0)*[-1.0, -1.0])
a = sqrt(1.0/3.0)
ip = IP(1, 1.0, (a, -a))
strain = [1.0 2.0; 3.0 4.0]
update!(ip, "strain", 0.0 => strain)
@test isapprox(ip("strain", 0.0), strain)