selah
SELAH, Stage-wise Evolution Library for Accelerators and HPC: the library's entry point.
use selah gives the working kinds (R_P, the operators' kind, chosen at build time: selah_kind_parameters) and L0, the coefficients: the coefficient forms and their conversions (selah_tableaux), the Runge–Kutta catalogue (selah_schemes), the splitting schemes (selah_splittings) and the buffers each storage form needs (selah_storage); and L1, the kernels: the box (selah_box) and the stage operations over a box or a flat array (selah_kernels); and L2, the stepper a caller drives stage by stage (selah_stepper).
Source: src/lib/selah.F90
Dependencies
Re-exports
| Name | Kind | Module | Description |
|---|---|---|---|
I4P | penf | ||
I8P | penf | ||
R4P | penf | ||
R8P | penf | ||
R_P | selah_kind_parameters | ||
butcher_tableau | type | selah_tableaux | Butcher tableau of an s-stage Runge–Kutta scheme. |
shu_osher_form | type | selah_tableaux | Shu–Osher form: alpha(i,k) and beta(i,k) for i = 2..s+1, k = 1..i-1; row 1 and the upper triangle are zero. |
shu_osher_2r_form | type | selah_tableaux | Two-register Shu–Osher form: stage i+1 from u^n and stage i only. |
williamson_2n_form | type | selah_tableaux | Williamson 2N low-storage form. |
butcher_from_shu_osher | function | selah_tableaux | Butcher tableau of a Shu–Osher form. |
butcher_from_shu_osher_2r | function | selah_tableaux | Butcher tableau of a two-register Shu–Osher form. |
butcher_from_williamson_2n | function | selah_tableaux | Butcher tableau of a Williamson 2N form. |
shu_osher_from_2r | function | selah_tableaux | Shu–Osher form of a two-register form: alpha(i+1,1) = a_i, alpha(i+1,i) += b_i, beta(i+1,i) = c_i. |
is_explicit | function | selah_tableaux | True when the tableau is strictly lower triangular. |
ssp_coefficient | function | selah_tableaux | SSP coefficient of a Shu–Osher form: (\min \alpha_{ik} / \beta_{ik}) over (\beta_{ik} > 0). |
euler_step_fractions | function | selah_tableaux | Per stage k, the largest forward-Euler step its residual takes in a Shu–Osher form, as a fraction of the step: (f_k = \max_{i > k,\ \beta_{ik} > 0} \beta_{ik} / \alpha_{ik}). |
stability_polynomial | function | selah_tableaux | Coefficients of the stability polynomial of an explicit tableau, (R(z) = \sum_{k=0}^{s} g_k z^k): (g_0 = 1), (g_k = b^T A^{k-1} \mathbf 1). |
imag_axis_bound | function | selah_tableaux | The imaginary-axis stability bound: the largest (\beta) with (|R(iy)| \le 1) for (|y| \le \beta), 0 when none (euler, ssp-22). The step of an oscillatory mode of frequency (\omega) (a gyration, a wave) is stable for (\omega \Delta t \le \beta). |
real_axis_bound | function | selah_tableaux | The real-axis stability bound: the largest (\beta) with (|R(-x)| \le 1) for (0 \le x \le \beta) (a decay of rate (\lambda) is stable for (\lambda \Delta t \le \beta)); a scan by 1e-3, then bisection. |
SCHEME_EULER | parameter | selah_schemes | Forward Euler. |
SCHEME_SSP_22 | parameter | selah_schemes | SSP, 2 stages, order 2 (Heun). |
SCHEME_SSP_33 | parameter | selah_schemes | SSP, 3 stages, order 3. |
SCHEME_SSP_54 | parameter | selah_schemes | SSP, 5 stages, order 4. |
SCHEME_SSP_104 | parameter | selah_schemes | SSP, 10 stages, order 4, low storage. |
SCHEME_RK4 | parameter | selah_schemes | Classic 4-stage, order 4. |
SCHEME_LSRK_33 | parameter | selah_schemes | Williamson 2N, 3 stages, order 3. |
SCHEME_LSRK_54 | parameter | selah_schemes | Carpenter–Kennedy 2N, 5 stages, order 4. |
RK_SCHEMES | parameter | selah_schemes | Every RK scheme. |
butcher | function | selah_schemes | Butcher tableau of a scheme. |
shu_osher | function | selah_schemes | Shu–Osher form of an SSP scheme (euler, ssp-22, ssp-33, ssp-54, ssp-104). |
shu_osher_2r | function | selah_schemes | Two-register Shu–Osher form (euler, ssp-22, ssp-33): ADAM's runge-kutta-1/2/3 ark, brk, crk. |
williamson_2n | function | selah_schemes | Williamson 2N form (lsrk-33, lsrk-54). |
splitting_composition | type | selah_splittings | A composition of the sub-flows of two partitions. |
palindrome | function | selah_splittings | Symmetric composition from its half sequence: the flows alternate partitions from first, and the last entry of half is the middle flow. |
splitting | function | selah_splittings | Splitting scheme by name; first (default 1) is the partition of the first flow. |
SCHEME_STRANG | parameter | selah_splittings | Strang, order 2. |
SCHEME_YOSHIDA_4 | parameter | selah_splittings | Yoshida triple jump, order 4. |
SCHEME_BLANES_MOAN_S6 | parameter | selah_splittings | Blanes–Moan S6, order 4. |
SCHEME_BLANES_MOAN_S10 | parameter | selah_splittings | Blanes–Moan S10, order 6. |
SPLITTING_SCHEMES | parameter | selah_splittings | All of them. |
FORM_BUTCHER | parameter | selah_storage | Stage state plus every stage residual. |
FORM_SHU_OSHER_2R | parameter | selah_storage | Two-register Shu–Osher (u^n and the residual). |
FORM_WILLIAMSON_2N | parameter | selah_storage | Williamson 2N (Delta Q and the residual). |
FORM_KETCHESON_2R | parameter | selah_storage | Ketcheson's two-register SSPRK(10,4). |
FORM_SPLITTING | parameter | selah_storage | One partition residual. |
registers_needed | function | selah_storage | Field-sized buffers a step of scheme in form needs besides the solution, the residual buffer included. |
box | type | selah_box | The part of a rank-5 field a kernel updates. |
LAYOUT_V_FIRST | parameter | selah_box | Layout (v, i, j, k, b). |
LAYOUT_V_LAST | parameter | selah_box | Layout (b, i, j, k, v). |
box_interior | interface | selah_box | The interior cells of a field: of the active blocks of a rank-5 field, or of a field of rank 1 to 4. |
box_range | function | selah_box | The loop range lo:hi of a field of rank k = size(lb) whose lower bounds are lb, as a box. |
box_components | function | selah_box | The same box restricted to the components v1..v2 (the variables of one partition). |
box_dim | function | selah_box | The dimension of the rank-5 view that holds dimension d of the field: d, or d + 1 for a scalar field. |
component_dim | function | selah_box | The dimension of the components: 1 (V_FIRST) or 5 (V_LAST). |
selah_copy | interface | selah_kernels | y = x. |
selah_axpy | interface | selah_kernels | y = y + alpha x. |
selah_lincomb | interface | selah_kernels | y = alpha x + beta y. |
selah_stage_state | interface | selah_kernels | Stage state: u = q + sum_k dt coef(k) regs(k), k = 1..n (a copy for n = 0). |
selah_step_update | interface | selah_kernels | Step update: q = q + dt sum_k coef(k) regs(k), and the step residual dq if present. |
selah_shu_osher_2r_stage | interface | selah_kernels | Two-register Shu–Osher stage: q = a q0 + b q + dt c r. |
selah_williamson_2n_stage | interface | selah_kernels | Williamson 2N stage: dqr = a dqr + dt r; q = q + b dqr. |
selah_stage_current | interface | selah_kernels | Stage current: y = (h - sum_{k<n} coef(k) regs(k)) / coef(n). |
stepper | type | selah_stepper | A time step driven stage by stage. |
additive_splitting | type | selah_additive_splitting | A composition of the field step and the caller's flow. |
OPERATOR_FIELD | parameter | selah_additive_splitting | The field step: the stepper. |
OPERATOR_FLOW | parameter | selah_additive_splitting | The caller's flow. |
SCHEME_LIE | parameter | selah_additive_splitting | Lie (Lie–Trotter) splitting, order 1. |
ADDITIVE_SCHEMES | parameter | selah_additive_splitting | Every scheme. |
PUSHER_BORIS | parameter | selah_pushers | Boris (1970), non-relativistic. |
PUSHER_BORIS_RELATIVISTIC | parameter | selah_pushers | Boris, relativistic (u = gamma v). |
PUSHER_VAY | parameter | selah_pushers | Vay (2008). |
PUSHER_HIGUERA_CARY | parameter | selah_pushers | Higuera & Cary (2017). |
selah_push | subroutine | selah_pushers | Push the first n particles of p by one step dt in the fields e, b (gathered at their positions). |