mod_dt_mhd Module


Uses

  • module~~mod_dt_mhd~~UsesGraph module~mod_dt_mhd mod_dt_mhd mod_physics_vars mod_physics_vars module~mod_dt_mhd->mod_physics_vars module~mod_variables mod_variables module~mod_dt_mhd->module~mod_variables module~mod_basic_types mod_basic_types module~mod_variables->module~mod_basic_types

Functions

private pure function get_cmax(u, x, flux_dim) result(wC)

Returns maximum local signal speed |v_n| + c_f (fast magnetosonic) from primitive state u in direction flux_dim; used in LLF/TVDLF flux estimation.

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: u(nw_phys)
real(kind=dp), intent(in) :: x(1:ndim)
integer, intent(in) :: flux_dim

Return Value real(kind=dp)


Subroutines

public subroutine setdt()

setdt - set dt for all levels between levmin and levmax. dtpar>0 --> use fixed dtpar for all level dtpar<=0 --> determine CFL limited timestep

Arguments

None

private subroutine phys_get_dt(w, x, dx, dtnew)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: w(nw_phys)
real(kind=dp), intent(in) :: x(1:ndim)
real(kind=dp), intent(in) :: dx(1:ndim)
real(kind=dp), intent(out) :: dtnew

private pure subroutine to_primitive(u)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(inout) :: u(nw_phys)