Skip to content

Commit ab637e8

Browse files
committed
1 parent cc037ca commit ab637e8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ using LinearElasticity.Solve: solve_elastic_constants
66

77
@testset "Test solving elastic constants on GaN (P6₃mc structure)" begin
88
positive_strains = map(1:6) do i
9-
EngineeringStrain(Float64[j == i ? 0.005 : 0 for j in 1:6])
9+
EngineeringStrain([j == i ? 0.005 : 0 for j in 1:6])
1010
end
1111
negative_strains = -positive_strains
1212
strains = collect(Iterators.flatten(zip(positive_strains, negative_strains))) # Combine two vectors with alternating strains
@@ -58,7 +58,7 @@ end
5858

5959
@testset "Test solving elastic constants on KNO₂ (Cm structure)" begin
6060
positive_strains = map(1:6) do i
61-
EngineeringStrain(Float64[j == i ? 0.005 : 0 for j in 1:6])
61+
EngineeringStrain([j == i ? 0.005 : 0 for j in 1:6])
6262
end
6363
negative_strains = -positive_strains
6464
strains = collect(Iterators.flatten(zip(positive_strains, negative_strains)))

0 commit comments

Comments
 (0)