Porting from FOODIE
FOODIE integrates an ODE written as a polymorphic integrand with overloaded operators: one integrator object per scheme, which calls the integrand back for every residual. SELAH computes the same schemes the other way round: the caller owns the solution, the time loop and the residual, and drives the stages (The stepper). The schemes are FOODIE's, the design is not: no callback, kernels on plain arrays, on the host and on a GPU.
SELAH ports FOODIE's whole catalogue (szaghi/SELAH#10): 86 scheme names in 13 families. The table below maps each FOODIE name to its SELAH scheme: since #10's step 4.4 every one of them has one (— would mark a scheme not ported). A program that names its scheme with FOODIE's string gets SELAH's from selah_scheme_name:
use selah
character(:), allocatable :: name
name = selah_scheme_name('runge_kutta_ssp_stages_3_order_3') ! 'ssp-33'; '' if not ported or not a FOODIE name
call st%initialize(scheme=name, ...)scripts/check_foodie_parity.py reads FOODIE's sources (the supported_schemes_ of each integrator), and checks that every FOODIE name has a row here, that each SELAH name is a scheme of the catalogue, and that the table and selah_scheme_name agree. FOODIE's defects are not ported: where FOODIE's code computes something other than its scheme, SELAH computes the scheme (the FOODIE audit, §2).
The map
| FOODIE name | SELAH scheme | Family | Status |
|---|---|---|---|
euler_explicit | euler | explicit Euler | in SELAH |
runge_kutta_ssp_stages_1_order_1 | euler | RK-SSP | in SELAH |
runge_kutta_ssp_stages_2_order_2 | ssp-22 | RK-SSP | in SELAH |
runge_kutta_ssp_stages_3_order_3 | ssp-33 | RK-SSP | in SELAH |
runge_kutta_ssp_stages_5_order_4 | ssp-54 | RK-SSP | in SELAH |
runge_kutta_ls_stages_1_order_1 | euler | low-storage 2N | in SELAH |
runge_kutta_ls_stages_5_order_4 | lsrk-54 | low-storage 2N | in SELAH |
runge_kutta_ls_stages_6_order_4 | lsrk-64 | low-storage 2N | in SELAH |
runge_kutta_ls_stages_7_order_4 | lsrk-74 | low-storage 2N | in SELAH |
runge_kutta_ls_stages_12_order_4 | lsrk-124 | low-storage 2N | in SELAH |
runge_kutta_ls_stages_13_order_4 | lsrk-134 | low-storage 2N | in SELAH |
runge_kutta_ls_stages_14_order_4 | lsrk-144 | low-storage 2N | in SELAH |
runge_kutta_emd_stages_2_order_2 | heun-euler-21 | embedded RK | in SELAH |
runge_kutta_emd_stages_6_order_5 | cash-karp-54 | embedded RK | in SELAH |
runge_kutta_emd_stages_7_order_4 | dopri-54 | embedded RK | in SELAH |
runge_kutta_emd_stages_9_order_6 | calvo-65 | embedded RK | in SELAH |
runge_kutta_emd_stages_17_order_10 | feagin-108 | embedded RK | in SELAH |
runge_kutta_lssp_stages_s_order_s_1 | lssp-<s>-1 | linear-SSP RK | in SELAH: selah_scheme_name(name, stages) |
runge_kutta_lssp_stages_s_order_s | lssp-<s> | linear-SSP RK | in SELAH: selah_scheme_name(name, stages) |
leapfrog | leapfrog | leapfrog | in SELAH |
leapfrog_raw | leapfrog-raw | leapfrog | in SELAH |
adams_bashforth_1 | ab-1 | Adams–Bashforth | in SELAH |
adams_bashforth_2 | ab-2 | Adams–Bashforth | in SELAH |
adams_bashforth_3 | ab-3 | Adams–Bashforth | in SELAH |
adams_bashforth_4 | ab-4 | Adams–Bashforth | in SELAH |
adams_bashforth_5 | ab-5 | Adams–Bashforth | in SELAH |
adams_bashforth_6 | ab-6 | Adams–Bashforth | in SELAH |
adams_bashforth_7 | ab-7 | Adams–Bashforth | in SELAH |
adams_bashforth_8 | ab-8 | Adams–Bashforth | in SELAH |
adams_bashforth_9 | ab-9 | Adams–Bashforth | in SELAH |
adams_bashforth_10 | ab-10 | Adams–Bashforth | in SELAH |
adams_bashforth_11 | ab-11 | Adams–Bashforth | in SELAH |
adams_bashforth_12 | ab-12 | Adams–Bashforth | in SELAH |
adams_bashforth_13 | ab-13 | Adams–Bashforth | in SELAH |
adams_bashforth_14 | ab-14 | Adams–Bashforth | in SELAH |
adams_bashforth_15 | ab-15 | Adams–Bashforth | in SELAH |
adams_bashforth_16 | ab-16 | Adams–Bashforth | in SELAH |
lmm_ssp_steps_3_order_2 | lmm-ssp-32 | LMM-SSP | in SELAH |
lmm_ssp_steps_4_order_3 | lmm-ssp-43 | LMM-SSP | in SELAH |
lmm_ssp_steps_5_order_3 | lmm-ssp-53 | LMM-SSP | in SELAH |
lmm_ssp_vss_steps_2_order_2 | lmm-ssp-vss-22 | LMM-SSP, variable step | in SELAH |
lmm_ssp_vss_steps_3_order_2 | lmm-ssp-vss-32 | LMM-SSP, variable step | in SELAH |
lmm_ssp_vss_steps_3_order_3 | lmm-ssp-vss-33 | LMM-SSP, variable step | in SELAH |
lmm_ssp_vss_steps_4_order_3 | lmm-ssp-vss-43 | LMM-SSP, variable step | in SELAH |
lmm_ssp_vss_steps_5_order_3 | lmm-ssp-vss-53 | LMM-SSP, variable step | in SELAH |
ms_runge_kutta_ssp_steps_2_stages_2_order_3 | msrk-ssp-223 | MSRK-SSP | in SELAH |
ms_runge_kutta_ssp_steps_3_stages_2_order_3 | msrk-ssp-323 | MSRK-SSP | in SELAH |
ms_runge_kutta_ssp_steps_4_stages_5_order_8 | msrk-ssp-458 | MSRK-SSP | in SELAH |
adams_moulton_0 | am-0 | Adams–Moulton | in SELAH |
adams_moulton_1 | am-1 | Adams–Moulton | in SELAH |
adams_moulton_2 | am-2 | Adams–Moulton | in SELAH |
adams_moulton_3 | am-3 | Adams–Moulton | in SELAH |
adams_moulton_4 | am-4 | Adams–Moulton | in SELAH |
adams_moulton_5 | am-5 | Adams–Moulton | in SELAH |
adams_moulton_6 | am-6 | Adams–Moulton | in SELAH |
adams_moulton_7 | am-7 | Adams–Moulton | in SELAH |
adams_moulton_8 | am-8 | Adams–Moulton | in SELAH |
adams_moulton_9 | am-9 | Adams–Moulton | in SELAH |
adams_moulton_10 | am-10 | Adams–Moulton | in SELAH |
adams_moulton_11 | am-11 | Adams–Moulton | in SELAH |
adams_moulton_12 | am-12 | Adams–Moulton | in SELAH |
adams_moulton_13 | am-13 | Adams–Moulton | in SELAH |
adams_moulton_14 | am-14 | Adams–Moulton | in SELAH |
adams_moulton_15 | am-15 | Adams–Moulton | in SELAH |
adams_bashforth_moulton_1 | abm-1 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_2 | abm-2 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_3 | abm-3 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_4 | abm-4 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_5 | abm-5 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_6 | abm-6 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_7 | abm-7 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_8 | abm-8 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_9 | abm-9 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_10 | abm-10 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_11 | abm-11 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_12 | abm-12 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_13 | abm-13 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_14 | abm-14 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_15 | abm-15 | Adams–Bashforth–Moulton | in SELAH |
adams_bashforth_moulton_16 | abm-16 | Adams–Bashforth–Moulton | in SELAH |
back_df_1 | bdf-1 | BDF | in SELAH |
back_df_2 | bdf-2 | BDF | in SELAH |
back_df_3 | bdf-3 | BDF | in SELAH |
back_df_4 | bdf-4 | BDF | in SELAH |
back_df_5 | bdf-5 | BDF | in SELAH |
back_df_6 | bdf-6 | BDF | in SELAH |