mirror of
https://github.com/JuliaFEM/JuliaFEM.jl.git
synced 2026-09-29 04:56:15 +00:00
Change coords field type from Point to Tuple
Change to Tuple, Array is allocating memory.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user