Skip to content

selah_splittings ​

SELAH, L0: splitting (composition) schemes for u' = F_1(u) + F_2(u).

A splitting scheme advances one step as the product of the sub-flows of the two partitions, each over a fraction of the step: (\varphi_{c_m \Delta t}^{[p_m]} \circ \dots \circ \varphi_{c_1 \Delta t}^{[p_1]}), applied left to right in the arrays (flow 1 first). With explicit Euler sub-steps on each partition, as ADAM's PRISM does for Maxwell's B and D, a sub-flow is exact when that partition's residual does not depend on its own variables.

Every scheme here is a symmetric (palindromic) composition, so its order is even. It is stored as the half sequence ending with the middle flow; splitting expands it:

SchemeFlowsOrderSource
strang32Strang (1968)
yoshida-474Yoshida (1990), the triple jump
blanes-moan-s6134Blanes & Moan (2002, J. Comput. Appl. Math. 142, 313), S6
blanes-moan-s10216Blanes & Moan (2002), S10

The Blanes–Moan digits are those of ADAM's blanesmoan_object (ADAM issue #128, D3, has the composition ADAM's loop got wrong).

Source: src/lib/selah_splittings.F90

Dependencies

Contents ​

Variables ​

NameTypeAttributesDescription
SCHEME_STRANGcharacter(len=*)parameterStrang, order 2.
SCHEME_YOSHIDA_4character(len=*)parameterYoshida triple jump, order 4.
SCHEME_BLANES_MOAN_S6character(len=*)parameterBlanes–Moan S6, order 4.
SCHEME_BLANES_MOAN_S10character(len=*)parameterBlanes–Moan S10, order 6.
SPLITTING_SCHEMEScharacter(len=15)parameterAll of them.

Derived Types ​

splitting_composition ​

A composition of the sub-flows of two partitions.

Components

NameTypeAttributesDescription
flowsinteger(kind=I4P)Number of sub-flows.
orderinteger(kind=I4P)Declared order.
partitioninteger(kind=I4P)allocatablePartition of each sub-flow, 1 or 2 [flows].
coefficientreal(kind=R_P)allocatableFraction of the step of each sub-flow [flows].

Functions ​

palindrome ​

Symmetric composition from its half sequence: the flows alternate partitions from first, and the last entry of half is the middle flow.

Attributes: pure

Returns: type(splitting_composition)

fortran
function palindrome(first, half, order) result(sc)

Arguments

NameTypeIntentAttributesDescription
firstinteger(kind=I4P)inPartition of the first flow, 1 or 2.
halfreal(kind=R_P)inCoefficients up to and including the middle flow.
orderinteger(kind=I4P)inDeclared order.

Call graph

splitting ​

Splitting scheme by name; first (default 1) is the partition of the first flow.

Attributes: pure

Returns: type(splitting_composition)

fortran
function splitting(scheme, first) result(sc)

Arguments

NameTypeIntentAttributesDescription
schemecharacter(len=*)inScheme name.
firstinteger(kind=I4P)inoptionalPartition of the first flow.

Call graph

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