Skip to content

Commit

Permalink
Update src/semidiscretization/semidiscretization_coupled.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Hendrik Ranocha <[email protected]>
  • Loading branch information
huiyuxie and ranocha authored Sep 11, 2024
1 parent 9476b63 commit 0a2f00f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/semidiscretization/semidiscretization_coupled.jl
Original file line number Diff line number Diff line change
Expand Up @@ -384,6 +384,8 @@ function update_cleaning_speed!(semi_coupled::SemidiscretizationCoupled,
c_h_deltat = calc_dt_for_cleaning_speed(cfl, mesh, equations, solver, cache)

# c_h is proportional to its own time step divided by the complete MHD time step
# We use @reset here since the equations are immutable (to work on GPUs etc.).
# Thus, we need to modify the equations field of the semidiscretization.
@reset equations.c_h = glm_scale * c_h_deltat / dt
semi.equations = equations
end
Expand Down

0 comments on commit 0a2f00f

Please sign in to comment.