C9 Stage currents
| ID | Group | Type | Backends | Figure | Program |
|---|---|---|---|---|---|
| C9 | Contracts | C | CPU (gfortran, nvfortran, ifx; R8P and R4P); GPU | no | selah_test_stage_current |
Case and scope
lookahead(k) and stage_current(k) make the weighted sums of a field's stage currents the charge-conserving current of the particles' displacement to each stage (guide), so that Gauss's law holds at every stage and step. The case checks it on a stencil-free model, every Runge–Kutta scheme.
Setup
| Item | Value |
|---|---|
| Model | a particle |
| Stage | the particle's residual; lookahead(k) stage_current(k) |
| Steps | 10 of |
| Admissibility | the catalogue; ssp-33 with |
Program
bash
./exe/selah_test_stage_currentResults
| Check | Result | Bound |
|---|---|---|
| at most 3.3e-16 (ssp-104), 0 for euler | 64 ε | |
lookahead(k) against the state of stage | bitwise, every scheme | exact |
lookahead(s) against the step's result | to round-off | 8 ε |
| admissibility | every catalogue scheme yes; | exact |
Four mutants each fail it: the row
Findings
- The construction keeps the discrete Gauss law to round-off at every stage, in every scheme of the catalogue, with a nonlinear deposit: it needs nothing of the deposit but that it be a function of the end points.