Skip to content

selah_kernels ​

SELAH, L1: the kernels, one generic name per operation over a box (rank 5) or a flat array (rank 1).

GenericOperationBox (selah_kernels_box)Flat (selah_kernels_flat)
selah_copyy = xmaskedunmasked
selah_axpyy = y + alpha xmaskedunmasked
selah_lincomby = alpha x + beta ymaskedunmasked
selah_stage_stateu = q + sum_k dt coef(k) regs(k)masked [, inactive u = q]unmasked
selah_step_updateq = q + dt sum_k coef(k) regs(k) [, dq]masked, dq = 0 inactiveunmasked
selah_shu_osher_2r_stageq = a q0 + b q + dt c rmaskedunmasked
selah_williamson_2n_stagedqr = a dqr + dt r; q = q + b dqrmaskedunmasked
selah_stage_currenty = (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 ​

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

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