Skip to content

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 ​

NameKindModuleDescription
I4Ppenf
I8Ppenf
R4Ppenf
R8Ppenf
R_Pselah_kind_parameters
butcher_tableautypeselah_tableauxButcher tableau of an s-stage Runge–Kutta scheme.
shu_osher_formtypeselah_tableauxShu–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_formtypeselah_tableauxTwo-register Shu–Osher form: stage i+1 from u^n and stage i only.
williamson_2n_formtypeselah_tableauxWilliamson 2N low-storage form.
butcher_from_shu_osherfunctionselah_tableauxButcher tableau of a Shu–Osher form.
butcher_from_shu_osher_2rfunctionselah_tableauxButcher tableau of a two-register Shu–Osher form.
butcher_from_williamson_2nfunctionselah_tableauxButcher tableau of a Williamson 2N form.
shu_osher_from_2rfunctionselah_tableauxShu–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_explicitfunctionselah_tableauxTrue when the tableau is strictly lower triangular.
ssp_coefficientfunctionselah_tableauxSSP coefficient of a Shu–Osher form: (\min \alpha_{ik} / \beta_{ik}) over (\beta_{ik} > 0).
euler_step_fractionsfunctionselah_tableauxPer 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_polynomialfunctionselah_tableauxCoefficients 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_boundfunctionselah_tableauxThe 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_boundfunctionselah_tableauxThe 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_EULERparameterselah_schemesForward Euler.
SCHEME_SSP_22parameterselah_schemesSSP, 2 stages, order 2 (Heun).
SCHEME_SSP_33parameterselah_schemesSSP, 3 stages, order 3.
SCHEME_SSP_54parameterselah_schemesSSP, 5 stages, order 4.
SCHEME_SSP_104parameterselah_schemesSSP, 10 stages, order 4, low storage.
SCHEME_RK4parameterselah_schemesClassic 4-stage, order 4.
SCHEME_LSRK_33parameterselah_schemesWilliamson 2N, 3 stages, order 3.
SCHEME_LSRK_54parameterselah_schemesCarpenter–Kennedy 2N, 5 stages, order 4.
RK_SCHEMESparameterselah_schemesEvery RK scheme.
butcherfunctionselah_schemesButcher tableau of a scheme.
shu_osherfunctionselah_schemesShu–Osher form of an SSP scheme (euler, ssp-22, ssp-33, ssp-54, ssp-104).
shu_osher_2rfunctionselah_schemesTwo-register Shu–Osher form (euler, ssp-22, ssp-33): ADAM's runge-kutta-1/2/3 ark, brk, crk.
williamson_2nfunctionselah_schemesWilliamson 2N form (lsrk-33, lsrk-54).
splitting_compositiontypeselah_splittingsA composition of the sub-flows of two partitions.
palindromefunctionselah_splittingsSymmetric composition from its half sequence: the flows alternate partitions from first, and the last entry of half is the middle flow.
splittingfunctionselah_splittingsSplitting scheme by name; first (default 1) is the partition of the first flow.
SCHEME_STRANGparameterselah_splittingsStrang, order 2.
SCHEME_YOSHIDA_4parameterselah_splittingsYoshida triple jump, order 4.
SCHEME_BLANES_MOAN_S6parameterselah_splittingsBlanes–Moan S6, order 4.
SCHEME_BLANES_MOAN_S10parameterselah_splittingsBlanes–Moan S10, order 6.
SPLITTING_SCHEMESparameterselah_splittingsAll of them.
FORM_BUTCHERparameterselah_storageStage state plus every stage residual.
FORM_SHU_OSHER_2Rparameterselah_storageTwo-register Shu–Osher (u^n and the residual).
FORM_WILLIAMSON_2Nparameterselah_storageWilliamson 2N (Delta Q and the residual).
FORM_KETCHESON_2Rparameterselah_storageKetcheson's two-register SSPRK(10,4).
FORM_SPLITTINGparameterselah_storageOne partition residual.
registers_neededfunctionselah_storageField-sized buffers a step of scheme in form needs besides the solution, the residual buffer included.
boxtypeselah_boxThe part of a rank-5 field a kernel updates.
LAYOUT_V_FIRSTparameterselah_boxLayout (v, i, j, k, b).
LAYOUT_V_LASTparameterselah_boxLayout (b, i, j, k, v).
box_interiorinterfaceselah_boxThe interior cells of a field: of the active blocks of a rank-5 field, or of a field of rank 1 to 4.
box_rangefunctionselah_boxThe loop range lo:hi of a field of rank k = size(lb) whose lower bounds are lb, as a box.
box_componentsfunctionselah_boxThe same box restricted to the components v1..v2 (the variables of one partition).
box_dimfunctionselah_boxThe dimension of the rank-5 view that holds dimension d of the field: d, or d + 1 for a scalar field.
component_dimfunctionselah_boxThe dimension of the components: 1 (V_FIRST) or 5 (V_LAST).
selah_copyinterfaceselah_kernelsy = x.
selah_axpyinterfaceselah_kernelsy = y + alpha x.
selah_lincombinterfaceselah_kernelsy = alpha x + beta y.
selah_stage_stateinterfaceselah_kernelsStage state: u = q + sum_k dt coef(k) regs(k), k = 1..n (a copy for n = 0).
selah_step_updateinterfaceselah_kernelsStep update: q = q + dt sum_k coef(k) regs(k), and the step residual dq if present.
selah_shu_osher_2r_stageinterfaceselah_kernelsTwo-register Shu–Osher stage: q = a q0 + b q + dt c r.
selah_williamson_2n_stageinterfaceselah_kernelsWilliamson 2N stage: dqr = a dqr + dt r; q = q + b dqr.
selah_stage_currentinterfaceselah_kernelsStage current: y = (h - sum_{k<n} coef(k) regs(k)) / coef(n).
steppertypeselah_stepperA time step driven stage by stage.
additive_splittingtypeselah_additive_splittingA composition of the field step and the caller's flow.
OPERATOR_FIELDparameterselah_additive_splittingThe field step: the stepper.
OPERATOR_FLOWparameterselah_additive_splittingThe caller's flow.
SCHEME_LIEparameterselah_additive_splittingLie (Lie–Trotter) splitting, order 1.
ADDITIVE_SCHEMESparameterselah_additive_splittingEvery scheme.
PUSHER_BORISparameterselah_pushersBoris (1970), non-relativistic.
PUSHER_BORIS_RELATIVISTICparameterselah_pushersBoris, relativistic (u = gamma v).
PUSHER_VAYparameterselah_pushersVay (2008).
PUSHER_HIGUERA_CARYparameterselah_pushersHiguera & Cary (2017).
selah_pushsubroutineselah_pushersPush the first n particles of p by one step dt in the fields e, b (gathered at their positions).

GPL-3.0-or-later, BSD-2-Clause, BSD-3-Clause or MIT, at your choice