Skip to content

Commit

Permalink
lower tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
svchb committed Dec 1, 2023
1 parent 9f3b68b commit c83061e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/general/interpolation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ include("../test_util.jl")
sol = solve(ode, RDPK3SpFSAL49(), abstol=1e-5, reltol=1e-3, dtmax=1e-2,
save_everystep=false)

function compare_interpolation_result(actual, expected; tolerance=1e-12)
function compare_interpolation_result(actual, expected; tolerance=1e-8)
@test actual.neighbor_count == expected.neighbor_count
@test actual.coord == expected.coord
@test isapprox(actual.density, expected.density, atol=tolerance)
@test isapprox(actual.velocity, expected.velocity, atol=tolerance)
@test isapprox(actual.pressure, expected.pressure, atol=tolerance)
end

function compare_interpolation_results(actuals, expecteds; tolerance=1e-12)
function compare_interpolation_results(actuals, expecteds; tolerance=1e-8)
@test length(actuals) == length(expecteds)
for (actual, expected) in zip(actuals, expecteds)
compare_interpolation_result(actual, expected, tolerance=tolerance)
Expand Down

0 comments on commit c83061e

Please sign in to comment.