Skip to content
Snippets Groups Projects
Commit 1f25946b authored by Florian Atteneder's avatar Florian Atteneder
Browse files

use maximum of max_v instead of v for time step estimation

parent 2cfe66a9
No related branches found
No related tags found
1 merge request!91make shock tube and blast wave tests run for SRHD when using MDA AV
......@@ -6,9 +6,9 @@ timestep(env, P, hrsc) = timestep(env, P, hrsc, env.mesh)
function compute_maxspeed(mesh, equation, cache)
@unpack v = get_static_variables(cache)
@unpack max_v = get_static_variables(cache)
dg1d.new_broadcast_volume!(maxspeed, equation, mesh)
vmax = dg1d.absolute_maximum(v)
vmax = dg1d.absolute_maximum(max_v)
vmax_limit = 1e4
if vmax > vmax_limit
@warn "Limiting timestep due to maximum speed exceeding $vmax_limit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment