Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Feb 22, 2023
1 parent cc037ca commit ab637e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using LinearElasticity.Solve: solve_elastic_constants

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

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

0 comments on commit ab637e8

Please sign in to comment.