Repository navigation
Support differing spatial dimensionality in ArrayDiscretization - #663
Merged
ChrisRackauckas merged 1 commit intoAug 29, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
utkuyilmaz1903
force-pushed
the
feature/array-differing-dimensionality
branch
2 times, most recently
from
August 28, 2026 11:42
dd6b916 to
e755226
Compare
utkuyilmaz1903
marked this pull request as ready for review
August 28, 2026 15:47
utkuyilmaz1903
force-pushed
the
feature/array-differing-dimensionality
branch
from
August 29, 2026 08:45
52aba0e to
4198183
Compare
ChrisRackauckas
referenced
this pull request
Aug 30, 2026
ArrayDiscretization interface-boundary and dimensionality support Release the accumulated source changes. Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R Co-authored-by: Claude <[email protected]>
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.
Closes the remaining variables of differing dimensionality item of #623.
A lower-dimensional field (
v(t, x)orS(t)in au(t, x, y)equation) used to trip the array-form gate because every depvar had to share the equation axes. The pointwise path already samples viaIdx; the slice form is the same projection — slice on the field's own axes, then permute/reshape with singleton dims so Julia can broadcast against the core. Prefix axes already broadcast and are left alone. The gate now looks at occurrences in the equation, not every variable in the system.Base
reshape/permutedimsscalarize a symbolic MOL slice, so the aligned view is anO(1)AxisReshape/AxisPermutedimsterm (shape lives in the type;promote_shapereturnsShapeVecT).+ v(t)successful_retcodeDt(u) ~ v(t)broadcast+ v(t)successful_retcodev(t, x)inu(t, x, y)successful_retcodev(t, y) + Dy(v)AxisReshape;successful_retcodev(t, y, x)AxisPermutedimssuccessful_retcodeu(t, 0, y) ~ v(t, y)successful_retcode; face also array-valuedtreesizeequaluperiodic inyonly,+ v(t, x)u, 1 forv;successful_retcodeu(t, x, y)in av(t, x)eqArrayFormFallbackat the gateStill falls back for a higher-dimensional field whose extra axes are free, derivatives of boundary values, and two-domain interfaces (#659).