Skip to content

Commit

Permalink
Fix validation
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Jan 16, 2025
1 parent f1d0f3f commit 9126cda
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/validation/validation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,16 @@

@test isapprox(error_edac_P1, 0, atol=eps())
@test isapprox(error_edac_P2, 0, atol=eps())
@test isapprox(error_wcsph_P1, 0, atol=eps())
@test isapprox(error_wcsph_P2, 0, atol=eps())

if VERSION == v"1.10"
# Reference values are computed with 1.10
@test isapprox(error_wcsph_P1, 0, atol=eps())
@test isapprox(error_wcsph_P2, 0, atol=eps())
else
# 1.11 produces slightly different pressure values than 1.10
@test isapprox(error_wcsph_P1, 0, atol=0.07)
@test isapprox(error_wcsph_P2, 0, atol=8.0e-6)
end

# Ignore method redefinitions from duplicate `include("../validation_util.jl")`
@test_nowarn_mod trixi_include(@__MODULE__,
Expand Down

0 comments on commit 9126cda

Please sign in to comment.