Skip to content

Cover complex Dirichlet splitting and clean helper - #129

Merged
ChrisRackauckas merged 5 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/125-complex-coupling
Sep 23, 2026
Merged

ChrisRackauckas merged 5 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/125-complex-coupling

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

This is the follow-up for N5/N6 from the round 1 review of the now-merged PR #126. It adds an exact complex Dirichlet split assertion and removes the unused ComplexEq type while renaming the local imaginary component variables to avoid shadowing Base.im.

Verification

  • GROUP=Core /home/crackauc/.juliaup/bin/julia +1.11 --project=. -e 'using Pkg; Pkg.test()': passed; Core/complex_splitting.jl | 4 4 13.3s; Testing PDEBase tests passed.
  • GROUP=QA /home/crackauc/.juliaup/bin/julia +1.11 --project=. -e 'using Pkg; Pkg.test()': passed; QA/qa.jl | 20 20 1m23.7s; Testing PDEBase tests passed.
  • Runic --check, typos src/make_pdesys_compatible.jl test/complex_splitting.jl, and git diff --check: passed.
  • GitHub CI completed with all configured checks passing: Core on Julia 1/LTS/pre and x86, QA, docs, downgrade tests, Runic, spelling, both benchmarks, all configured MethodOfLines downstream groups, and PDESystemLibrary Core.

Scope notes

  • The complex Dirichlet assertion tests split_complex_bc directly. ModelingToolkit has already represented the condition as PreSplitComplexBC; handle_complex currently errors while classifying such BCs. That is part of the separate N4 complex-BC follow-up and remains unchanged here.
  • I retained the handle_complex branch for systems with ordinary real equations and complex boundary conditions: those can have eqs_have_complex == false while the BC triggers complex handling, so the branch is reachable. The review's N1 also confirmed that the MethodOfLines legacy amplitude failures are caused by the fixture's loose solver tolerance; no MethodOfLines test was changed here.
  • The conj behavior in N3 and the complex-BC defects in N4 remain out of scope.

Links

Please ignore this draft until reviewed by @ChrisRackauckas.

🤖 Generated with Codex CLI 0.156.0 (model: gpt-6-luna); transcript: /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu

ChrisRackauckas and others added 5 commits September 23, 2026 00:12
Test complex coefficients, products between dependent fields, and duplicated real/imaginary boundary equations. The regression fails against the current normalization before the fix.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu
Retain ModelingToolkit's equation-pair grouping, reconstruct each complex residual, substitute real and imaginary dependent variables, then expand derivatives and complex products before splitting. Generate real-valued component variables and use the same residual split for complex boundary equations.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.0
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu
Split each side of complex equations independently so downstream symbolic consumers retain the equation form they expect.

Co-Authored-By: Chris Rackauckas <[email protected]>

Co-Authored-By: Codex <[email protected]>

Agent-Harness: Codex CLI 0.156.0

Agent-Model: gpt-6-luna

Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu
Cover a time-dependent complex Dirichlet condition at the BC splitting boundary, rename the imaginary component local, and remove the unused ComplexEq type. Keep handle_complex's real-equation branch because complex BC-only systems can reach it.

Co-Authored-By: Chris Rackauckas <[email protected]>

Co-Authored-By: Codex <[email protected]>

Agent-Harness: Codex CLI 0.156.0

Agent-Model: gpt-6-luna

Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu
Resolve the follow-up against the now-merged complex coupling change and current release base.

Co-Authored-By: Chris Rackauckas <[email protected]>

Co-Authored-By: Codex <[email protected]>

Agent-Harness: Codex CLI 0.156.0

Agent-Model: gpt-6-luna

Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/125-codex/log.txt on amdci2.julia.csail.mit.edu
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 23, 2026 21:10
@ChrisRackauckas
ChrisRackauckas merged commit 19a3adc into SciML:master Sep 23, 2026
26 checks passed
ChrisRackauckas referenced this pull request Sep 24, 2026
* Support Complex-typed dependent variables in PDE splitting

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-sol
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/130-codex/log.txt on amdci2.julia.csail.mit.edu

* Document Complex field declarations and bump patch version

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-sol
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/130-codex/log.txt on amdci2.julia.csail.mit.edu

* Clarify mixed field limitation and test production split order

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-sol
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/PDEBase.jl/jobs/130-codex/log.txt on amdci2.julia.csail.mit.edu

---------

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
Co-authored-by: Codex <[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