selah_kernels
SELAH, L1: the kernels, one generic name per operation over a box (rank 5) or a flat array (rank 1).
| Generic | Operation | Box (selah_kernels_box) | Flat (selah_kernels_flat) |
|---|---|---|---|
selah_copy | y = x | masked | unmasked |
selah_axpy | y = y + alpha x | masked | unmasked |
selah_lincomb | y = alpha x + beta y | masked | unmasked |
selah_stage_state | u = q + sum_k dt coef(k) regs(k) | masked [, inactive u = q] | unmasked |
selah_step_update | q = q + dt sum_k coef(k) regs(k) [, dq] | masked, dq = 0 inactive | unmasked |
selah_shu_osher_2r_stage | q = a q0 + b q + dt c r | masked | unmasked |
selah_williamson_2n_stage | dqr = a dqr + dt r; q = q + b dqr | masked | unmasked |
selah_stage_current | y = (h - sum_k coef(k) regs(k)) / coef(n) | unmasked | — |
The box form takes the box first; the flat form has no box and no mask.
Source: src/lib/selah_kernels.F90
Dependencies
Contents
- selah_copy
- selah_axpy
- selah_lincomb
- selah_stage_state
- selah_step_update
- selah_shu_osher_2r_stage
- selah_williamson_2n_stage
- selah_stage_current
Interfaces
selah_copy
y = x.
Module procedures: copy_box, copy_flat
selah_axpy
y = y + alpha x.
Module procedures: axpy_box, axpy_flat
selah_lincomb
y = alpha x + beta y.
Module procedures: lincomb_box, lincomb_flat
selah_stage_state
Stage state: u = q + sum_k dt coef(k) regs(k), k = 1..n (a copy for n = 0).
Module procedures: stage_state_box, stage_state_flat
selah_step_update
Step update: q = q + dt sum_k coef(k) regs(k), and the step residual dq if present.
Module procedures: step_update_box, step_update_flat
selah_shu_osher_2r_stage
Two-register Shu–Osher stage: q = a q0 + b q + dt c r.
Module procedures: shu_osher_2r_stage_box, shu_osher_2r_stage_flat
selah_williamson_2n_stage
Williamson 2N stage: dqr = a dqr + dt r; q = q + b dqr.
Module procedures: williamson_2n_stage_box, williamson_2n_stage_flat
selah_stage_current
Stage current: y = (h - sum_{k<n} coef(k) regs(k)) / coef(n).
Module procedures: stage_current_box