Skip to content

fix(tests): BrownFullBasicInit for PDAE Dirichlet DAE test#587

Draft
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/dae-pdae-brown-init
Draft

fix(tests): BrownFullBasicInit for PDAE Dirichlet DAE test#587
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:fix/dae-pdae-brown-init

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Contributor

Summary

Fixes the failing master CI test group DAE (all Julia versions).

  • Failing test: Dt(u(t,x)) ~ Dxx(u(t,x)), 0 ~ Dxx(v(t,x)) + sin(x), Dirichlet BCs in test/DAE/MOL_1D_PDAE.jl
  • Error: DAE initialization failed: ... normresid ≈ 0.0039 > abstol = 1e-6 under OrdinaryDiffEq's default CheckInit
  • Fix: Pass initializealg = BrownFullBasicInit() at solve, matching test/Complex/schroedinger.jl

This is a minimal, test-scoped fix for one failing test. A broader package-level fallback is proposed in #585; this PR does not depend on that.

Verification

Locally on Julia 1.10.11:

ENV["GROUP"]="DAE"; Pkg.test("MethodOfLines")
# Test Summary: | Pass  Total
# DAE           |   22     22

Without the change, solve throws on initialization; with it, accuracy checks against the manufactured solution pass (atol = 0.01).

Notes

Please ignore this PR until reviewed by @ChrisRackauckas.

OrdinaryDiffEq v7 defaults to CheckInit, which rejects the
O(dx^2) residual of the algebraic constraint after MOL
discretization. Match the existing Complex/schroedinger
pattern and initialize with BrownFullBasicInit.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
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