Developer & Specifications Archive¶
This historical archive preserves the initial pre-audit scoping census, dependency DAG analysis, stage-by-stage technical specifications, and pre-audit benchmark reports written before FlexMESA re-baselined its single active reference to MESA release 26.4.1 (DECISIONS #22, #141).
Pre-Audit Historical Archive (#140, #142, #145, #165, #166)
The Wave 0 through Wave 5 specifications linked below are historical pre-audit records written against MESA 0b2e6bb. Statements inside them regarding verification, parity, 0 ULP end-to-end checks, or unconditional #![forbid(unsafe_code)] across every crate are superseded by the post-audit MESA 26.4.1 governance in notes/SCOPE.md and notes/DECISIONS.md (including flexmesa-crlibm-sys as the sole unsafe FFI wrapper crate under #165, and canonical Rust vs. derived JAX roles under #166). The six benchmark reports at the bottom of this page have been updated against the committed MESA r26.4.1 raw outputs in benchmarks/raw/26.4.1/ (#146).
For user-facing domain physics, governing equations, and usage examples, see the Background & Physics section. For current MESA 26.4.1 progress, declared gaps, and provenance-backed benchmark tables, see Live Progress Dashboard, Declared Known Gaps, Port Coverage Map, Verification & Benchmarks Overview, Kernel Performance Scorecards, and Tolerance & Discrepancy Ledger.
Scoping & Architectural Specifications¶
- Master Scoping & Architecture: Line-of-code census of upstream
MESAHub/mesa, the 12-tier acyclic module dependency DAG, the Index & Memory-Order Contract (1..nzcolumn-major Fortran vs.0..nz-1C-contiguous row-majorFlexMESA), and explicit scope boundaries (PGSTAR\(\to\)flexmesa.plotting, pulsation export boundary forGYRE/FGONG/OSC, and unifiedTDC/RSP2). - Wave 0 Infrastructure Specification: Declarative
.defaultsand Fortraninlistschema validation (flexmesa.schema), deterministic.safetensorsphysics table encoding andSHA-256manifest verification (flexmesa.data), and upstream<pkg>/test/test_outputreference comparators (flexmesa.testing). - Wave 1 Foundation & Microphysics Specification: Physical constants (
const), utilities (utils), IEEE-754 elementary intrinsics (math), const-generic forward-mode dual and hyperdual numbers (auto_diff), 1D monotonic and 2D bicubic splines (interp_1d,interp_2d), dense/banded/block-tridiagonal linear solvers (mtx), root-finders and stiff ODE integrators (num), 5-channel thermal neutrinos (neu), and local/time-dependent turbulent convection (turb). - Wave 1.5 Hybrid Consolidation Specification: Unification of the Three-Tier Hybrid Architecture (
Tier Acanonical Safe Rust,Tier Bdual Safe Rust +@jax.jitmicrophysics,Tier CHirshmanbcyclic+ GPU Parallel Cyclic Reduction +@jax.custom_vjp), zero-copyPyO3bindings, and the 4-way Fortran MESA benchmark harness. - Wave 2 Atomic & Photometric Specification: 347 built-in reference nuclides (plus full
isotopes.dataparser), 286 solar isotopes, and 10 solar abundance scales (AG89throughAAG21) (chem), partial ionization and effective ionic charges (ionization), and 32-gather 3D cubic Hermite Kurucz SED synthesis and non-uniform Simpson filter photometry (colors). - Wave 3a Analytical & Single-Table EOS Specification: Canonical 26-slot thermodynamic state vector, Aparicio (1998) Gauss-Fermi integrals, neutral
Idealgas, Timmes & Swesty (2000) biquintic/bicubicHELM, Potekhin & Chabrier (2010)PC, Jermyn et al. (2021) third-orderSkyecrystallization EOS, \(C^2\) polygonal quintic blending (eos_dt_get), and \((P_{\mathrm{gas}}, T)\) root-finding inversions (eos_pt_get). - Wave 3b 4D Tabulated EOS, Opacity, Rates, Networks & Atmospheres Specification: 4D \((X, Z, \log_{10} Q, \log_{10} T)\) tabulated equations of state (
OPAL/SCVH,FreeEOS,CMS), radiative/conductive/Compton opacities (kap), 316 REACLIB rates and plasma screening (rates), SIMD dual-number reaction networks and stiff 1-zone burners (net), and grey/irradiated/tabulated model atmospheres (atm). - Wave 4 1D Stellar Structure & Evolution Specification: Staggered 1D Lagrangian stellar structure (
star_data,star), 8-massZAMScatalog, 3-cell stencil automatic differentiation (StarAdOrder1), coupled Henyey Newton-Raphson solver, overshooting, stellar winds, adaptive remeshing (mesh_adjust), and Söderlind-Wang H211 timestep control (varcontrol). - Wave 5 Advanced Stellar Physics, Interacting Binaries & Asteroseismology Specification: Burgers multi-fluid atomic diffusion, Caplan OCP strong coupling, crystallization phase separation, Roche shellular rotation and Spruit-Tayler dynamo, well-balanced 1D spherical HLLC Riemann hydrodynamics,
RSP2radial pulsation,GYRE/FGONG/OSCexporters, coupled interacting binary evolution (binary), and asteroseismic scaling, surface corrections, and optimization (astero).
MESA 26.4.1 Four-Way Benchmark Reports (benchmarks/raw/26.4.1/)¶
- Foundational Numerics, Splines, Neutrinos & Convection Benchmark Report: MESA
26.4.1and Reference Fortran \(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\) latency and checksum tables forauto_diff,interp_2d,neu,mtx_tridiag(bcyclicvs.PCRvs.rust_ffi),turb_mlt, andturb_tdc. - Composition, Ionization & Photometry Benchmark Report: MESA
26.4.1and Reference Fortran \(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\) latency and checksum tables forchem_comp,ion_fe56,ion_4d, andcolors_sed. - Analytical & Single-Table EOS Benchmark Report: MESA
26.4.1\(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\) latency and checksum tables foreos_ideal,eos_helm,eos_pc, andeos_skye. - 4D EOS, Opacity, Networks & Atmospheres Benchmark Report: MESA
26.4.1\(N_{\mathrm{zones}} \in \{128, 1024, 4096\}\) latency and checksum tables foreos_4d,kap_fixed,rates_screen,net_eval, andatm_table. - 1D Stellar Structure & Evolution Benchmark Report: Post-
51e1adcMESA26.4.1\(N_{\mathrm{zones}} \in \{128, 512, 1024\}\) latency tables, checksum disclosures, andstar/test(\(4.0\,M_\odot, Z = 0.02\)) comparison notes. - Advanced Star, Binaries & Asteroseismology Benchmark Report: MESA
26.4.1\(N_{\mathrm{zones}} \in \{128, 512, 1024\}\) latency and snapshot tables against the Reference Fortran comparator (w5_riemann_rsp2non-MESA;w5_diff_rot,w5_binary_rlof,w5_astero_seismhybrid).