Repository navigation
Moving Hermite basis 1/5: carry u_s, alpha_s in the solver state - #56
Open
rogeriojorge wants to merge 2 commits into
Open
rogeriojorge wants to merge 2 commits into
rogeriojorge wants to merge 2 commits into
Conversation
…xed') ode_system accepts an optional third state component stack([u_s, alpha_s]) that replaces the configured basis in the kinetic operator and the current; with zero rates the right-hand side is bitwise the fixed-basis one. simulation(frame='fixed') carries the basis and returns basis_u/basis_alpha per saved time; diagnostics use the per-time basis for the kinetic energy.
This was referenced Oct 4, 2026
This was referenced Oct 4, 2026
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.
Adds an optional basis state
stack([u_s, alpha_s])(shape (2, 3*Ns)) to the solver state. It is the first of five PRs for a moving and rescaled asymmetric Hermite basis.ode_systemaccepts(Ck, Fk, basis). The state'su_s, alpha_sreplace the configured ones in the kinetic operator and in the current.simulation(frame="fixed")carries the basis and returnsbasis_uandbasis_alphaper saved time.diagnosticsuses the per-time basis for the kinetic energy.frame=Noneis unchanged.Tested SHA 11e6b6e. Command:
python -m pytest -q -n 2 tests. Result: 154 passed (baseline 149).New tests (
tests/test_moving_basis.py):Stack: base
adaptive/base=integration/dark-baseline9d0982d (main ab87385 + #48, #46, #13, #12, #9, #55, #50, #44, #18, #51). This lands on main after those foundation PRs and the earlier PRs of this stack. Local results only (macOS, Python 3.12, JAX 0.11.2, x64); GitHub CI on this branch has not been checked yet.Formulation and literature checks: Pagliantini et al. arXiv 2208.14373; Bessemoulin-Chatard and Filbet; Ma, Sun and Tang.