Skip to content

A4 Splittings ​

IDGroupTypeBackendsFigureProgram
A4AccuracyPCPU (gfortran, nvfortran, ifx; R8P)yesselah_test_splittings, selah_test_stepper

Case and scope ​

A splitting composes flows that each advance one partition of the components. Its order depends on the composition's coefficients and on the sub-flows being exact. The case checks:

  • the compositions themselves: each partition sums to one step, the sequence is a palindrome, the partitions alternate;
  • the observed order, with either partition first, on two separable Hamiltonian problems whose sub-flows are exact;
  • the same orders through the stepper (selah_test_stepper, the oscillator).

Setup ​

ItemValue
Problemsthe harmonic oscillator q′=p, p′=−q (exact); the pendulum q′=p, p′=−sin⁡q (reference: classic RK4 with 40 000 steps in quadruple precision)
Sub-flowsexact: q+=cΔtp with p frozen, p−=cΔtV′(q) with q frozen
Steps4 halvings from 8 steps per unit time (2 for the order-6 Blanes–Moan S10, which reaches the R8P floor sooner)
Boundobserved order of the last halving at least p−0.2

Program ​

bash
./exe/selah_test_splittings ; ./exe/selah_test_stepper
SELAH_VV_DIR=exe/vv-data ./exe/selah_test_splittings   # splitting-orders.dat

Results ​

Splitting orders

The pendulum, partition 1 first.

SchemeProblemFirst partitionDeclaredObserved, 1st halving2nd3rdFinest error
strangoscillator122.0032.0012.0003.23e-05
strangpendulum122.0012.0002.0002.04e-05
strangoscillator222.0022.0002.0002.19e-05
strangpendulum222.0012.0002.0001.49e-05
yoshida-4oscillator144.0064.0014.0005.23e-09
yoshida-4pendulum143.9823.9953.9997.48e-10
yoshida-4oscillator244.0024.0014.0003.33e-09
yoshida-4pendulum244.0034.0014.0001.73e-09
blanes-moan-s6oscillator144.0014.0004.0007.47e-12
blanes-moan-s6pendulum144.0044.0014.0002.42e-12
blanes-moan-s6oscillator244.0014.0004.0006.61e-12
blanes-moan-s6pendulum243.9994.0004.0002.46e-12
blanes-moan-s10oscillator166.0376.0096.0021.87e-13
blanes-moan-s10pendulum166.0916.0236.0062.35e-13
blanes-moan-s10oscillator266.0366.0096.0021.96e-13
blanes-moan-s10pendulum266.0306.0096.0021.13e-13

Findings ​

  • Strang 2, Yoshida 4, Blanes–Moan S6 4 and S10 6, with either partition first, on both problems.
  • The stepper's sub-flow is a forward-Euler step of one partition, yp+=ckΔtRp. It is the exact flow of that partition only when Rp does not depend on partition p. That holds for the separable Hamiltonians here, not for a general splitting, where the composition falls to first order (Tutorial 6).

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