Skip to content

Make MOLFiniteDifference and PseudospectralDiscretization box discretizations - #729

Merged
xtalax merged 6 commits into
SciML:masterfrom
xtalax-droid:forge/fem-m0-box
Oct 29, 2026
Merged

xtalax merged 6 commits into
SciML:masterfrom
xtalax-droid:forge/fem-m0-box

Conversation

@xtalax-droid

@xtalax-droid xtalax-droid commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

MOLFiniteDifference and PseudospectralDiscretization now subtype PDEBase.AbstractBoxDiscretization instead of AbstractEquationSystemDiscretization. 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:

  • All non-GPU, non-NeuralNets test groups pass, including Components, QA (21 tests), Connectors, Discretization (3692 equation tests and 64 problem-construction tests) and Wave_Eq_Staggered. The 32-bit Components entry in test_groups.toml was not run.
  • A new Components test asserts both types are AbstractBoxDiscretization.
  • A new Components test solves the Rectangle example with Dirichlet, Neumann and Robin trace conditions through PDEBase's automatic to_box_bcs lowering: the lowered conditions are isequal to 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).
  • Runic is clean on the touched files.

Codex review: no findings on the final head (the only earlier finding was gating on the PDEBase release and compat, now satisfied). docs/Project.toml still lists PDEBase = "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

xtalax and others added 2 commits October 24, 2026 21:18
…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 and others added 4 commits October 28, 2026 22:23
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]>
@xtalax
xtalax merged commit b17309e into SciML:master Oct 29, 2026
91 checks passed
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