From 9126cda2d227b9c96f6b897a7d93b50bf058ac46 Mon Sep 17 00:00:00 2001 From: Erik Faulhaber <44124897+efaulhaber@users.noreply.github.com> Date: Fri, 17 Jan 2025 00:40:55 +0100 Subject: [PATCH] Fix validation --- test/validation/validation.jl | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/test/validation/validation.jl b/test/validation/validation.jl index 12d1daaf3..4fcf6df9b 100644 --- a/test/validation/validation.jl +++ b/test/validation/validation.jl @@ -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__,