Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions src/simulation/m_riemann_solvers.fpp
Original file line number Diff line number Diff line change
Expand Up @@ -652,11 +652,6 @@ contains
call s_compute_fast_magnetosonic_speed(rho_R, c_R, B%R, norm_dir, c_fast%R, H_R)
end if

if (hyper_cleaning) then ! mhd
c_fast%L = min(c_fast%L, -hyper_cleaning_speed)
c_fast%R = max(c_fast%R, hyper_cleaning_speed)
end if

if (viscous) then
if (chemistry) then
call compute_viscosity_and_inversion(T_L, Ys_L, T_R, Ys_R, Re_L(1), Re_R(1))
Expand Down Expand Up @@ -694,6 +689,12 @@ contains
s_R = max(vel_R(dir_idx(1)) + c_R, vel_L(dir_idx(1)) + c_L)
end if

if (hyper_cleaning) then
! Dedner GLM: (B_n, psi) subsystem has eigenvalues +/- c_h in the lab frame.
s_L = min(s_L, -hyper_cleaning_speed)
s_R = max(s_R, hyper_cleaning_speed)
end if

s_S = (pres_R - pres_L + rho_L*vel_L(dir_idx(1))* &
(s_L - vel_L(dir_idx(1))) - &
rho_R*vel_R(dir_idx(1))* &
Expand Down
131 changes: 63 additions & 68 deletions tests/B4DC99F9/golden-metadata.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions tests/B4DC99F9/golden.txt

Large diffs are not rendered by default.

Loading
Loading