Skip to content

Commit

Permalink
fix compute_dt (#216)
Browse files Browse the repository at this point in the history
  • Loading branch information
albert-de-montserrat authored Aug 12, 2024
1 parent d23392a commit f3b6bf0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f3b6bf0

Please sign in to comment.