Repository navigation
Make MOLFiniteDifference and PseudospectralDiscretization box discretizations - #729
Merged
Merged
Conversation
…izations Both now subtype PDEBase.AbstractBoxDiscretization (FEM spec M0, section 4.2) so PDEBase can lower boundary conditions for box discretizers. Needs a PDEBase release containing the type (SciML/PDEBase.jl#143); compat is not bumped here. Agent-Harness: Claude Code 2.1.310 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
…OLFiniteDifference FEM spec M0 exit: the section 9 example on a Rectangle with Dirichlet, Neumann and Robin trace conditions is discretized without an explicit lowering (symbolic_discretize applies PDEBase.to_box_bcs for box discretizations) and agrees exactly with the endpoint-form system and, away from the shared corner nodes, with the manufactured solution to solver tolerance. Guarded on isdefined(PDEBase, :to_box_bcs). Agent-Harness: Claude Code 2.1.311 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
xtalax
marked this pull request as ready for review
October 28, 2026 20:45
Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[email protected]>
Agent-Harness: Claude Code 2.1.312 Agent-Model: claude-sonnet-5-5 Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1 Agent-Review: unreviewed Co-authored-by: Claude Code <[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.
MOLFiniteDifferenceandPseudospectralDiscretizationnow subtypePDEBase.AbstractBoxDiscretizationinstead ofAbstractEquationSystemDiscretization. This lets PDEBase's box-specific boundary lowering and classifier hooks apply to them (M0 of the FiniteElementMethod design, section 4.2). There is no behaviour change.Requires PDEBase 0.1.40 (registered in General, JuliaRegistries/General#173874); compat is now
PDEBase = "0.1.40".Tests, run against the registered PDEBase 0.1.40 with this branch merged with master 71860eb:
test_groups.tomlwas not run.AbstractBoxDiscretization.to_box_bcslowering: the lowered conditions areisequalto the hand-written endpoint form, the two solutions are identical, and the error against the exact solution is about 6.5e-12 away from the corner nodes. Corner nodes shared by two faces come out zero, as in the endpoint form (existing behaviour).Codex review: no findings on the final head (the only earlier finding was gating on the PDEBase release and compat, now satisfied).
docs/Project.tomlstill listsPDEBase = "0.1.20"; left alone.🤖 Posted by an AI agent · harness: Claude Code 2.1.312 · model: claude-sonnet-5-5
Review: unreviewed
Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1