Skip to content

Contracts ​

The guarantees that are not physics: identities with ADAM and between the storage forms, the stage contract a solver programs against, values pinned between releases, the device, and the suite's own power to see defects.

CaseTypeWhat it verifies
C1 Equivalence with ADAMcontractADAM's coefficients and FNL kernels, bitwise; ADAM's CPU loops within 4 ε
C2 Storage formscontractevery low-storage form computes its Butcher form's solution to round-off
C3 Stage contractcontractghost cells, aliasing, stages on q, masks, caller registers, the error stops
C4 Golden regressioncontract1312 values, written once, compared on every compiler
C5 Devicecontractkernels and stepper on an NVIDIA A30, against the host and ADAM
C6 Mutation testingcontract28 deliberate defects, each caught by the suite
C7 Precisioncontractwhat runs, and what is asserted, in single precision
C8 Companion statescontracta companion and its field are the coupled Runge–Kutta step, bitwise; active extent, layouts, rebuild; particles pushed on it
C9 Stage currentscontractGauss's law at every stage and step with the stage currents; the look-ahead state

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