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

determine initial viscosity using all dynamic variables as indicators

parent 58b1aa3f
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
This commit is part of merge request !91. Comments created here will be created in the context of that merge request.
......@@ -430,7 +430,7 @@ function initialdata_hrsc!(env, P::Project, hrsc::Union{HRSC.EntropyViscosity,HR
@unpack mu, cellmax_v = get_cell_variables(env.cache)
@unpack max_v = get_static_variables(env.cache)
@unpack D = get_dynamic_variables(env.cache)
@unpack D, S, tau = get_dynamic_variables(env.cache)
dg1d.new_broadcast_volume!(maxspeed, P.equation, env.mesh)
Npts, K = layout(env.mesh)
mat_max_v = reshape(view(max_v, :), (Npts, K))
......@@ -438,8 +438,8 @@ function initialdata_hrsc!(env, P::Project, hrsc::Union{HRSC.EntropyViscosity,HR
cellmax_v[k] = maximum(view(mat_max_v, :, k))
end
HRSC.compute_viscosity!(
mu,
D, cellmax_v,
mu, deepcopy(mu),
(D,S,tau), cellmax_v,
mda_hrsc.av)
end
......
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