Skip to content

Fix Schroedinger phase regression test - #703

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/702-schroedinger-phase
Sep 23, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:agent/702-schroedinger-phase

Conversation

@ChrisRackauckas-Claude

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

Copy link
Copy Markdown
Member

The Schroedinger fixture now compares the complex solution against the exact semidiscrete eigenmode, including phase, and solves with reltol = abstol = 1e-10. The old normalized-magnitude check could not detect the incorrect phase and used tolerances too loose for the six rotations. PDEBase PR #126 is merged, and PDEBase 0.1.37 is registered; this PR must merge only after that release is available to users.

Verification

  • Baseline phase assertion with registered PDEBase 0.1.36, before developing the fix branch:
    export TMPDIR=/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/tmp
    export JULIA_DEPOT_PATH=/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/depot:/home/crackauc/.julia
    export JULIA_PKG_PRECOMPILE_AUTO=0 OPENBLAS_NUM_THREADS=4
    /home/crackauc/.juliaup/bin/julia +1.11 --startup-file=no --project=/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/env /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/phase_contract.jl
    Observed failure: PDEBase version: 0.1.36; retcode: Success; max absolute phase error: 1.706812952107552; Schroedinger phase and amplitude | Fail 1 Total 1.
  • Same phase assertion and command with PDEBase PR branch agent/125-complex-coupling developed into the scratch environment: PDEBase version: 0.1.36; retcode: Success; max absolute phase error: 8.082699687172357e-9; Schroedinger phase and amplitude | Pass 1 Total 1.
  • GROUP=Complex /home/crackauc/.juliaup/bin/julia +1.11 --startup-file=no --project=. -e 'using Pkg; Pkg.develop(path="/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/PDEBase"); Pkg.test()' (with repository compat temporarily set to 0.1.36 because the unreleased branch reports that version): Complex | 2 2 20m45.7s; Testing MethodOfLines tests passed. The repository compat was restored to 0.1.37 afterward.
  • The existing MOL_Interface2 Schroedinger check failed before its marker was updated with Unexpected Pass on the PDEBase fix branch; afterward, /home/crackauc/.juliaup/bin/julia +1.11 --startup-file=no --project=/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/env test/MOL_Interface2/MOLtest2.jl passed: Schroedinger Equation | 1 pass 1 total.
  • The first pushed revision's downgrade run caught that stale @test_broken. After correcting it, the latest CI matrix passed all 76 checks, including downgrade, Complex across release/LTS/pre, QA, formatting, docs, and Discretization.
  • /home/crackauc/.juliaup/bin/julia +1.11 --startup-file=no --project=/home/crackauc/.julia/environments/runic_formatter -e 'using Runic; exit(Runic.main(["--check", "test/Complex/schroedinger.jl"]))', typos Project.toml test/Complex/schroedinger.jl test/MOL_Interface2/MOLtest2.jl, and git diff --check passed. A whole-file Runic check on MOLtest2.jl reports only pre-existing formatting at lines 414–420, outside this diff; CI's changed-file format check passed.
  • QA body command /home/crackauc/.juliaup/bin/julia +1.11 --startup-file=no --project=/home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/scratch/env -e 'include("test/qa/qa.jl")': Quality Assurance | 20 pass 1 error; Aqua's persistent-task scan could not locate CUDA_Runtime_jll, a dependency of CUDA. The CI QA job passed; no check was skipped or suppressed.

Not verified

The full suite was not run locally. The docs build ran and passed in CI. The issue-specific Complex group was run locally through Pkg.test() with PDEBase's merged fix branch.

Reviewer pushback

Please keep this PR sequenced after PDEBase 0.1.37 is available to users. The QA body error is specific to the local scratch environment and needs an environment-level explanation; the CI QA job passed.

Closes #702

Please ignore this draft until reviewed by @ChrisRackauckas.

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

ChrisRackauckas and others added 2 commits September 23, 2026 02:41
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/log.txt on amdci2.julia.csail.mit.edu
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.156.1
Agent-Model: gpt-6-luna
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/702-codex/log.txt on amdci2.julia.csail.mit.edu
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 23, 2026 20:49
@ChrisRackauckas
ChrisRackauckas merged commit b5ce411 into SciML:master Sep 23, 2026
76 checks passed
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/MethodOfLines.jl that referenced this pull request Sep 25, 2026
Bring in the Schroedinger phase regression fix from SciML#703 so Complex CI can be re-evaluated against current master.
ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/MethodOfLines.jl that referenced this pull request Sep 26, 2026
Resolve Project.toml by keeping PDEBase 0.1.38 (contains complex-typed variable support from PDEBase SciML#131). Bring in SciML#703 Schrödinger phase regression fix.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Cursor Agent <[email protected]>
Agent-Harness: Cursor Agent CLI 2026.09.26-dd393fe
Agent-Model: auto
Agent-Session: local session, transcript at /home/crackauc/sandbox/agent-jobs/MethodOfLines.jl/jobs/704-codex/log-cont4.txt on amdci2.julia.csail.mit.edu
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.

Schroedinger test checks magnitudes only, with the wrong phase sign and a loose tolerance

2 participants