Skip to content

selah_foodie_names ​

SELAH, L0: FOODIE's scheme names translated to SELAH's.

SELAH ports the integrators of FOODIE (issue #10). A program written against FOODIE names its scheme with FOODIE's string ('runge_kutta_ssp_stages_3_order_3'); selah_scheme_name gives the SELAH name of the same scheme ('ssp-33'), or an empty string when the scheme is not ported yet or the name is not FOODIE's. The map lives here and in the table of docs/cookbook/foodie.md; scripts/check_foodie_parity.py reads FOODIE's own sources and checks that the two agree, name by name. The translation is outside every select case of the dispatch: a scheme has one name in SELAH.

FOODIE's adams_bashforth_<k> is ab-<k> (k = 1..16; adams_bashforth_moulton_<k> is another family); adams_moulton_<k> is am-<k> (k = 0..15), adams_bashforth_moulton_<k> is abm-<k> (k = 1..16), back_df_<k> is bdf-<k> (k = 1..6).

FOODIE's three names of forward Euler (euler_explicit and the one-stage members of its SSP and low-storage families) are all euler.

Source: src/lib/selah_foodie_names.F90

Dependencies

Contents ​

Functions ​

selah_scheme_name ​

The SELAH name of a FOODIE scheme, '' if it is not ported or not a FOODIE name. FOODIE's linear-SSP family takes its stage count apart (stages), SELAH's has it in the name: without stages, or with stages out of 2..LSSP_MAX_STAGES, its name gives ''.

Attributes: pure

Returns: character(len=:)

fortran
function selah_scheme_name(foodie_name, stages) result(name)

Arguments

NameTypeIntentAttributesDescription
foodie_namecharacter(len=*)inFOODIE's name of the scheme.
stagesinteger(kind=I4P)inoptionalStages, for FOODIE's linear-SSP family.

Call graph