compute_max_wave_speed Function

public function compute_max_wave_speed(state) result(s_max)

Return the global maximum wave speed max_i(|u_i| + c_i).

Scans all grid points and returns the largest signal speed, which is used by the driver to compute a CFL-stable time step: dt = cfl * dx / compute_max_wave_speed(state)

Arguments

Type IntentOptional Attributes Name
type(solver_state_t), intent(in) :: state

Solver state (reads state%ub, state%n_pt, state%cfg%gam)

Return Value real(kind=wp)