From a7c7a3b8cb950b4bb610652ca8e9ba1167956df4 Mon Sep 17 00:00:00 2001 From: Yik Haw Teoh Date: Sat, 9 Dec 2023 17:31:45 -0600 Subject: [PATCH] Fixed total entropy function call --- test/test_tree_1d_eulermulti.jl | 4 ++-- test/test_tree_2d_eulermulti.jl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_tree_1d_eulermulti.jl b/test/test_tree_1d_eulermulti.jl index 3c763809258..1cbb61f98b0 100644 --- a/test/test_tree_1d_eulermulti.jl +++ b/test/test_tree_1d_eulermulti.jl @@ -19,10 +19,10 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_1d_dgsem") gas_constants=SVector{length(gas_constants)}(gas_constants...)) u = [-1.4632513788889214, 0.9908786980927811, 0.2909066990257628, 0.6256623915420473, 0.4905882754313441, 0.14481800501749112, 1.0333532872771651, 0.6805599818745411] w = cons2entropy(u, equations) - @test w ≈ ForwardDiff.gradient(u -> total_entropy(u, equations), u) + @test w ≈ ForwardDiff.gradient(u -> Trixi.total_entropy(u, equations), u) @test entropy2cons(w, equations) ≈ u end - +end @trixi_testset "elixir_eulermulti_ec.jl" begin @test_trixi_include(joinpath(EXAMPLES_DIR, "elixir_eulermulti_ec.jl"), l2=[0.15330089521538684, 0.4417674632047301, diff --git a/test/test_tree_2d_eulermulti.jl b/test/test_tree_2d_eulermulti.jl index 4f65462cfa3..0996da0f676 100644 --- a/test/test_tree_2d_eulermulti.jl +++ b/test/test_tree_2d_eulermulti.jl @@ -18,7 +18,7 @@ EXAMPLES_DIR = pkgdir(Trixi, "examples", "tree_2d_dgsem") gas_constants=SVector{length(gas_constants)}(gas_constants...)) u = [-1.7433292819144075, 0.8844413258376495, 0.6050737175812364, 0.8261998359817043, 1.0801186290896465, 0.505654488367698, 0.6364415555805734, 0.851669392285058, 0.31219606420306223, 1.0930477805612038] w = cons2entropy(u, equations) - @test w ≈ ForwardDiff.gradient(u -> total_entropy(u, equations), u) + @test w ≈ ForwardDiff.gradient(u -> Trixi.total_entropy(u, equations), u) @test entropy2cons(w, equations) ≈ u end