From 5bd7c6901177c750de991b382c801a2e52b2c78e Mon Sep 17 00:00:00 2001 From: huiyuxie Date: Fri, 13 Dec 2024 20:03:23 -1000 Subject: [PATCH] Fix --- src/solvers/dgsem_tree/indicators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/solvers/dgsem_tree/indicators.jl b/src/solvers/dgsem_tree/indicators.jl index 04b3bc98aec..61ef682e8e9 100644 --- a/src/solvers/dgsem_tree/indicators.jl +++ b/src/solvers/dgsem_tree/indicators.jl @@ -116,7 +116,7 @@ function (indicator_hg::IndicatorHennemannGassner)(u, mesh, equations, dg::DGSEM # magic parameters # TODO: Are there better values for Float32? RealT = real(dg) - threshold = 0.5f0 * 10^(convert(RealT, -1.8) * nnodes(dg)^convert(RealT, 0.25)) + threshold = 0.5f0 * 10^(convert(RealT, -1.8) * nnodes(dg)^0.25f0) o_0001 = convert(RealT, 0.0001) parameter_s = log((1 - o_0001) / o_0001)