A2 Orders on scalar ODEs
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| A2 | Accuracy | P | CPU (gfortran, nvfortran, ifx; R8P) | yes | selah_test_schemes |
Case and scope
The order conditions hold for the coefficients; this case checks the order of the integrator. Every scheme integrates two problems to
Setup
| Item | Value |
|---|---|
| Problems | |
| Integration | the Butcher tableau, in quadruple precision (integrate_scalar) |
| Bound | observed order of the last halving at least |
| Precision | R8P builds only: R4P coefficients cannot show the order of the exact ones |
Program
bash
./exe/selah_test_schemes
SELAH_VV_DIR=exe/vv-data ./exe/selah_test_schemes # scalar-orders.datResults

The error at
| Scheme | Problem | Declared | Observed 8→16 | 16→32 | 32→64 | 64→128 |
|---|---|---|---|---|---|---|
euler | 1 | 1.040 | 1.019 | 1.010 | 1.005 | |
ssp-22 | 2 | 2.069 | 2.034 | 2.017 | 2.008 | |
ssp-33 | 3 | 3.072 | 3.036 | 3.018 | 3.009 | |
ssp-54 | 4 | 4.057 | 4.029 | 4.014 | 4.007 | |
ssp-104 | 4 | 4.030 | 4.015 | 4.007 | 4.004 | |
rk4 | 4 | 4.075 | 4.038 | 4.019 | 4.009 | |
lsrk-33 | 3 | 3.072 | 3.036 | 3.018 | 3.009 | |
lsrk-54 | 4 | 4.052 | 4.026 | 4.013 | 4.007 | |
euler | 1 | 1.051 | 1.024 | 1.012 | 1.006 | |
ssp-22 | 2 | 2.061 | 2.032 | 2.017 | 2.008 | |
ssp-33 | 3 | 3.097 | 3.051 | 3.026 | 3.013 | |
ssp-54 | 4 | 4.062 | 4.034 | 4.017 | 4.009 | |
ssp-104 | 4 | 3.981 | 3.993 | 3.997 | 3.999 | |
rk4 | 4 | 3.962 | 3.992 | 3.998 | 4.000 | |
lsrk-33 | 3 | 3.114 | 3.058 | 3.029 | 3.015 | |
lsrk-54 | 4 | 4.115 | 4.059 | 4.030 | 4.015 |
Findings
- Every scheme reaches its declared order on both problems.