apply_weno_js_generic Subroutine

public pure subroutine apply_weno_js_generic(f_stencil, coeffs, beta_mats, linear_weights, f_hat)

Generic Jiang-Shu WENO reconstruction for odd-width schemes.

Applies the standard Jiang-Shu nonlinear weights alpha_k = d_k / (eps + beta_k)^2 to the candidate reconstructions supplied by @p coeffs and @p beta_mats.

                        (candidate_width x n_candidate)
                        (candidate_width x candidate_width x n_candidate)

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in) :: f_stencil(:,:)
real(kind=wp), intent(in) :: coeffs(:,:)
real(kind=wp), intent(in) :: beta_mats(:,:,:)
real(kind=wp), intent(in) :: linear_weights(:)
real(kind=wp), intent(out) :: f_hat(:)