From 76900b281d88ad9d72a1361524de98bcbc802e06 Mon Sep 17 00:00:00 2001 From: albert-de-montserrat Date: Mon, 12 Aug 2024 15:12:18 +0200 Subject: [PATCH] fix compute_dt --- src/Utils.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Utils.jl b/src/Utils.jl index 5cc2f92f..c50d01b9 100644 --- a/src/Utils.jl +++ b/src/Utils.jl @@ -442,7 +442,7 @@ end @inline function _compute_dt(V::NTuple, di, dt_diff, max_fun::F) where {F<:Function} n = inv(length(V) + 0.1) - dt_adv = mapreduce(x -> x[1] * inv(max_fun(abs.(x[2]))), max, zip(di, V)) * n + dt_adv = mapreduce(x -> x[1] * inv(max_fun(abs.(x[2]))), min, zip(di, V)) * n return min(dt_diff, dt_adv) end