cons_width Function

private pure function cons_width(n) result(w)

Stencil width for the high-order conservative-flux metric operator on n nodes: 6 (6th-order) when n>=6, 4 (4th-order) when n>=4, else 2 (the classical central scheme). Even widths keep the interior operator a symmetric central difference, whose conservative flux telescopes cleanly.

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

Return Value integer