Skip to content

Test programs ​

bash scripts/run_tests.sh runs every program in exe/, built by a tests-* mode of FoBiS (--exe-dir exe-r4 for the single-precision tests-*-r4 modes). Each program exits non-zero on any failed check, and prints one line per check. The *_xfail_* programs must fail: the runner passes them when they exit with an error. The suite runs:

  • with gfortran 16.2 (optimised, debug with every runtime check, OpenMP with 4 threads), nvfortran 26.9 (optimised, debug) and ifx 2026.2;
  • under fpm;
  • in single precision (C7);
  • on an NVIDIA A30 (C5).
ProgramWhat it assertsChecks (R8P)Page
selah_test_kindsthe kinds reach a client through use selah5—
selah_test_fundalFUNDAL allocation, bounds, initial values; a device is present in a device build3—
selah_test_tableau_formsthe conversions between coefficient forms; the order checker; is_explicit; the SSP coefficient on hand-made forms12P2
selah_test_schemesorder conditions, exact order, c=A1, explicitness, SSP coefficients, Shu–Osher consistency, form equivalence, published values, observed orders78A1, A2, P2
selah_test_adam_parityADAM's tableaux and two-register coefficients, bitwise11C1
selah_test_splittingspartition sums, palindromes, alternation, observed orders on two problems37A4
selah_test_storageregisters_needed for every scheme and form23—
selah_test_kernelsevery kernel, both layouts, masked and unmasked (and the stage state with masked_q), component ranges, active prefixes: values and untouched cells348C3
selah_test_kernels_adamwhole steps from SELAH's kernels against ADAM's FNL kernels (bitwise) and CPU loops (4 ε)27C1
selah_test_device_kernelsevery kernel on FUNDAL device memory57C5
selah_test_device_adamSELAH's against ADAM's kernels on the device, bitwise18C1, C5
selah_test_stepperorders in every form, the stage contract, stages on q, stage coefficients, telescoping, splittings through the stepper314A3, C3, P4
selah_test_stepper_optionsstage_time (the abscissae; a splitting's from the other partition's flows), caller registers, dq, masks through the stepper, the mask policy masked_q49C3
selah_test_forestthe stepper driven as ADAM's forest drives its integrator: two realms of two blocks, seams filled per stage or lagged (#113), every Runge–Kutta scheme and form: per-stage seams give the single-block solution bitwise; lagged seams the lagged scheme's definition; the reflux register telescopes; end-of-step and per-stage reflux conserve; caller registers are scratch between steps (the D_flux diagnostic)220C3
selah_test_nonautonomoustime-dependent residuals through the stepper, every scheme and form: u′=qtq−1 exact for q≤p (splittings with either partition time-dependent); observed orders on the Riccati equation and on a forced oscillator44 (22 in R4P, without the orders)C3
selah_test_stage_eulerthe per-stage forward-Euler fractions and the SSP coefficient against the literature, in every form; planted Shu–Osher forms; a positivity limiter through the stepper: positive with fkΔt, negative with half of it76P2
selah_test_additive_splittingthe field step composed with the caller's flow: queries, orders of lie, strang and the palindromes with exact sub-flows (either operator first), with the stepper as the field step, with both terms time-dependent, with a stiff flow (the cooling model)48 (14 in R4P, the queries)A6
selah_test_particle_flowskick and drift through the splitting form: KDK's discrete solution and phase error on the oscillator, Kepler orders and bounded energy for every splitting, gas and sinks coupled through the additive splitting16 (6 in R4P, the oscillator)A7
selah_test_companiona field and a companion (initialize_companion) coupled both ways: bitwise one state in every form, both particle layouts, active extent within a capacity, rebuild, the coupled orders53 (42 in R4P, without the orders)C8
selah_test_rk_particlesimag_axis_bound, real_axis_bound against closed forms and computed values; gyration wn=Rnw0 on a companion; stability at the bound; the E×B drift kept71 (51 in R4P)C8, A5
selah_test_pushersselah_push: Boris's angle, speed, drift and layouts; every pusher's defining equation; force-free; relativistic drift; volume; the non-relativistic limit23 (19 in R4P, without the volume values)A8
selah_test_stage_currentlookahead and stage_current: Gauss's law (D+sin⁡x) at every stage and step, every scheme; the look-ahead against the next stage; admissibility27C9
selah_test_decaydecay=: a frozen source exact for λΔt up to 106, λ=0 bitwise explicit, a coupled pair's equilibrium, stability and order56 (48 in R4P, without the orders)P5
selah_test_stepper_ranksfields of rank 1 to 4, seven shapes: rank k bitwise rank 5, orders, the stage contract, stage coefficients, masks, splittings848 (694 in R4P, without the RK orders)A3, C3, C5
selah_test_golden1312 pinned values42C4
selah_vv_stabilitystability polynomials, axis limits (and the library's imag_axis_bound, real_axis_bound against them), SSP discs30A5
selah_vv_ssp_tvdTVD up to ν=C5P1
selah_vv_splitting_energybounded energy error for splittings, drift for Runge–Kutta5P3
selah_vv_formsevery low-storage form on its Butcher form's solution6C2
selah_test_xfail_dq_formdq for a non-Butcher form stops the program—C3
selah_test_xfail_registersregisters numbered from 0 stop the program—C3
selah_test_xfail_additive_backwardan additive splitting with backward substeps, not declared reversible, stops the program—A6
selah_test_xfail_forma scheme in a form it does not have stops the program—C3

The benchmarks (src/bench/, modes bench-*) are not tests: they time, they do not assert.

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