Repository navigation
Support higher mixed derivatives in ArrayDiscretization - #654
Merged
ChrisRackauckas merged 1 commit intoAug 23, 2026
Merged
ChrisRackauckas merged 1 commit into
ChrisRackauckas merged 1 commit into
Conversation
Generalize the SciML#648 tensor-product scheme from Dx(Dy(u)) to two-direction mixed derivatives of arbitrary order on both the slice and pointwise paths.
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.
Extends #648. Closes the remaining Higher mixed derivatives item of #623.
Higher mixed derivatives (
Dx^2(Dy(u))and the rest) now use the same tensor-product stencil asDx(Dy(u)), on both the array path and the pointwise path.These used to fall back to pointwise equations. On the scalar path it was worse: there was no mixed rule, so the leftover outer
Differentialbecame0. The slice form just looks upderivweights.map[Differential(x)^m]/map[Differential(y)^n]and reusesarray_mixed_difference. Bands now use the real mixed orders, so something likeDx^3(Dy(u))doesn't empty the core. First-order mixed is unchanged.(2,1),(1,2),(2,2),(3,1)Dxx + Dyy + Dxxy, approx. order 2 / 4 / 6successful_retcodesuccessful_retcodesuccessful_retcodenn(12 vs 12)Dxxz(2,1)successful_retcodeDx^3(Dy(u))band width, order 2 / 4 / 6u = sin(πx) sin(πy)L∞ < 5e-2DxyDx(Dy(Dz(u))),should_transform=falseStill falls back for 3+ spatial directions, mixed derivatives of boundary values, staggered grids, periodic + nonuniform, and two-domain interface BCs.