Skip to content

Support two-domain interface boundaries in ArrayDiscretization - #659

Merged
ChrisRackauckas merged 5 commits into
SciML:masterfrom
utkuyilmaz1903:feature/array-two-domain-interface-bc
Aug 29, 2026
Merged

ChrisRackauckas merged 5 commits into
SciML:masterfrom
utkuyilmaz1903:feature/array-two-domain-interface-bc

Conversation

@utkuyilmaz1903

@utkuyilmaz1903 utkuyilmaz1903 commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Part of #623. Continues #619: the same seam-wrapping tap slices, but the taps land in another variable's array.

array_periodic_dims required both ends and the same variable, so a two-domain join (c1(t, 0.5) ~ c2(t, 0.5)) fell the whole interior back to pointwise. The wrap spec is now per-end: nothing (regular BC, shrink the core), :self (periodic), or (; u, x, n) (partner). Self-periodic is both ends :self. Lower wrap uses the destination length, so n1 ≠ n2 matches _wrapinterface.

2D flux faces (HigherOrderInterfaceBoundary) become one array equation over the face. 1D flux stays the single-point fallback. Self-periodic flux conditions bind each end's call to its own face when both ends share a discrete variable.

Case Interior array eqs Check
1D two-domain linear diffusion 2 successful_retcode; eq count independent of dx
1D two-domain nonlinear laplacian 2 successful_retcode
Unequal grids (n1 ≠ n2) 2 successful_retcode
Three-domain chain 3 successful_retcode
2D two-domain (+ flux face) ≥ 2 eq count independent of transverse n
2D two-domain in x, periodic in y ≥ 2 successful_retcode
WENO on mismatched NU grids 2 successful_retcode; array_wrap_coord ≡ bcoord
Linear operators on NU two-domain 0 fallback
Nllap coefficient depends on the interface IV 0 fallback
Incompatible layout — ArgumentError (both equation orders)
Self-periodic (1D / 2D / Brusselator / WENO NU) unchanged regression

Still falls back for linear operators on a nonuniform two-domain interface, staggered or spherical wrap, IV-dependent nllap coefficients.

@ChrisRackauckas

Copy link
Copy Markdown
Member

Rebase

@utkuyilmaz1903
utkuyilmaz1903 force-pushed the feature/array-two-domain-interface-bc branch from fddd777 to 11d86e6 Compare August 26, 2026 13:09
@utkuyilmaz1903

Copy link
Copy Markdown
Member Author

@ChrisRackauckas The red CI on this PR is the #655 precompile failure. #667 is the import fix. Once that is on master I'll rebase this.

@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as draft August 26, 2026 21:53
@utkuyilmaz1903
utkuyilmaz1903 force-pushed the feature/array-two-domain-interface-bc branch from d022d34 to 626d755 Compare August 28, 2026 06:09
@utkuyilmaz1903
utkuyilmaz1903 force-pushed the feature/array-two-domain-interface-bc branch from bf89a73 to a5cc491 Compare August 28, 2026 13:23
@utkuyilmaz1903
utkuyilmaz1903 marked this pull request as ready for review August 28, 2026 15:09
@ChrisRackauckas
ChrisRackauckas merged commit 0706b1d into SciML:master Aug 29, 2026
69 checks passed
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants