Repository navigation
Support boundary values in interior equations for ArrayDiscretization - #626
Merged
ChrisRackauckas merged 1 commit intoAug 18, 2026
Merged
Conversation
utkuyilmaz1903
marked this pull request as ready for review
August 10, 2026 12:44
utkuyilmaz1903
marked this pull request as draft
August 10, 2026 13:00
utkuyilmaz1903
marked this pull request as ready for review
August 11, 2026 21:47
Interior references like u(t, 1) or u(t, 0, y) substitute the matching array element or face slice on every emitted equation: array boxes, size-1 wrap boxes, and frame points (keyed on the grid-valued form valmaps leaves there). Winding coefficients take the same rules, so u(t, 1)*Dx(u) stays in array form. Patterns with no slice form (bval derivatives, time literals, edge-aligned grids, off-edge samples) fall back cleanly and error under StrictArrayDiscretization.
utkuyilmaz1903
force-pushed
the
feature/array-boundary-values
branch
from
August 15, 2026 07:34
fc323e9 to
256c658
Compare
Member
Author
|
@ChrisRackauckas I believe this PR is good to go. Travel took up most of my time this week, but I'll dive back into the rest of the tasks on Monday. |
This was referenced Aug 26, 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.
Summary
u(t, 1),u(t, 0, y), …) stay in array form via element/face-slice substitution (Refs Tracking: discretization patterns that still use pointwise equations #623), on every emitted equation: array boxes, size-1 wrap boxes, and frame points.ScalarizedDiscretization(bitwise where asserted). The array path additionally substitutes periodic-face and free-standing-corner references that scalarboundaryvalfuncsleave symbolic.StrictArrayDiscretization): bval derivatives, time-literals (u(0, x)), edge-aligned grids, off-edge samples, stationary.Result
+ u(t,0) - u(t,1)0.0+ u(t,0,y)0.0+ v(t,1)0.0+ u(t,1)0.0f(u0,p,0)bitwise + live forcing+ u(t,0)+ u(t,0,y)+ u(t,0,0)u(t,1)*Dx(u)Approach
Equation-level validation accepts a reference or throws the named fallback that
StrictArrayDiscretizationsurfaces as an error. Accepted references become substitutionrules ordered ahead of the core variable rules: an array element when every spatial
argument is fixed, a singleton-range face slice that broadcasts against the core box
otherwise. The pointwise equations at size-1 wrap boxes and frame points substitute scalar
elements keyed on the grid-valued form
valmapsleaves behind (u(t, 0, y)appears thereas
u(t, 0, 0.2)). Winding coefficients are arrayified with the same rules, so referencesinside upwind coefficients substitute before the wind rule fires.
Verification
Array_Discretizationgroup: 32 testsets, 201/201 locally. Parity cases assertmaxdiff == 0.0on solutions or a bitwise-identical RHS; non-parity cases (periodicfaces, corners) assert no leftover symbolic reference and a successful solve in both
modes.
Not in this PR
Dx(u(t, 1)), edge-aligned gridsNonlinearSystem(PDEBase)u(0, x)) — clean fallback only