ADC-461 Spec 3 board-DSL demonstration case (spec3_board) - #51
Open
wolf75222 wants to merge 1 commit into
Open
Conversation
Spec 3 (adc_cpp) adds a blackboard facade (adc.physics.Model + adc.math) that lowers to the operator-first kernel (adc.model.Module + adc.time.Program). adc_cases is the consumer of the adc DSL; existing cases use adc.System / adc.dsl / adc.AmrSystem and are unaffected (the facade is additive). This case demonstrates the new facade from the application side. spec3_board/ (tutoriel, ci=true, needs=[]) authors an Euler-Poisson-Lorentz model at the blackboard, checks it lowers to a typed Module (StateSpace U, FieldSpace, explicit_rate local_rate, implicit_operator local_linear_operator), and asserts a board time step produces IR identical to the explicit operator-first step -- the Spec 3 anti-duplication guarantee. It builds IR only (no compile); adc_cases CI builds adc_cpp master, which exposes the board API. A compile+run board case is a follow-up (needs cxx + Kokkos). Fixes ADC-461.
wolf75222
force-pushed
the
adc-461-spec3-board-demo
branch
from
June 24, 2026 21:28
50043c6 to
96e69a4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes ADC-461 (part of the Spec 3 epic, adc_cpp ADC-450).
Spec 3 in adc_cpp adds a blackboard facade (
adc.physics.Model+adc.math) that lowers to the operator-first kernel (adc.model.Module+adc.time.Program). adc_cases is the consumer of the adc DSL. Existing cases useadc.System/adc.dsl/adc.AmrSystemand are unaffected (the facade is purely additive;adc.dslis unchanged). This adds a demonstration of the new facade from the application side.What
spec3_board/(run.py+README.md, registered incases_manifest.toml,category=tutoriel,ci=true,needs=[]):adc.model.Module(StateSpace U(rho,mx,my), FieldSpace,explicit_rate= local_rate(U,Fields)->Rate(U),implicit_operator= local_linear_operatorFields->LocalLinearOperator(U,U));CI-light: builds IR only (no compile). adc_cases CI builds adc_cpp master, which now exposes the board API (
adc.physics/math/lib, merged in adc_cpp #280/#281).Validation (local)
python3 check_cases.py-> OK (19 cases, all documented, manifest coherent, 0 em-dash).PYTHONPATH=<adc_cpp master build>/python python3 spec3_board/run.py-> exit 0 (board IR == operator-first IR).A compile+run board case (Python describes, C++ executes end to end) is a follow-up (
needs=["cxx"]+ Kokkos).