Skip to content

Commit

Permalink
Change eps in p3_tests to eps(FT)
Browse files Browse the repository at this point in the history
  • Loading branch information
anastasia-popova committed Feb 1, 2024
1 parent a67bbe3 commit eb917f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/p3_tests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ function test_p3_shape_solver(FT)
TT.@testset "shape parameters (nonlinear solver function)" begin

# initialize test values:
eps = FT(1e-3)
ep = 1e3 * eps(FT)
N_test = (FT(1e8)) # N values
λ_test = (FT(15000), FT(20000)) # test λ values in range
ρ_r_test = (FT(200)) #, FT(1)) #, FT(100)) # representative ρ_r values
Expand Down Expand Up @@ -188,8 +188,8 @@ function test_p3_shape_solver(FT)
)

# Compare solved values with the input expected values
TT.@test λ λ_ex rtol = eps
TT.@test N₀ N₀_ex rtol = eps
TT.@test λ λ_ex rtol = ep
TT.@test N₀ N₀_ex rtol = ep
end
end
end
Expand Down

0 comments on commit eb917f3

Please sign in to comment.