From e98859fe596c0f5376ec13c37832bdcfba41f5c4 Mon Sep 17 00:00:00 2001 From: huiyuxie Date: Sun, 18 Aug 2024 14:11:26 -1000 Subject: [PATCH] start --- test/test_type.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/test_type.jl b/test/test_type.jl index d22afa65c0a..316b9b056f6 100644 --- a/test/test_type.jl +++ b/test/test_type.jl @@ -345,7 +345,13 @@ isdir(outdir) && rm(outdir, recursive = true) @test typeof(@inferred Trixi.entropy_thermodynamic(cons, equations)) == RealT @test typeof(@inferred energy_internal(cons, equations)) == RealT - # TODO: test `gradient_conservative`, not necessary but good to have + @test eltype(@inferred Trixi.gradient_conservative(pressure, u, equations)) == + RealT + @test eltype(@inferred Trixi.gradient_conservative(Trixi.entropy_math, u, + equations)) == RealT + @test eltype(@inferred Trixi.gradient_conservative(Trixi.entropy_guermond_etal, + u, + equations)) == RealT end end