Skip to content

Compare the nonuniform upwind quadratic test in grid order - #745

Merged
ChrisRackauckas merged 2 commits into
SciML:masterfrom
xtalax-droid:forge/nonuniform-upwind-node-order-test
Nov 25, 2026
Merged

ChrisRackauckas merged 2 commits into
SciML:masterfrom
xtalax-droid:forge/nonuniform-upwind-node-order-test

Conversation

@xtalax-droid

Copy link
Copy Markdown
Contributor

This follows up on the merged nonuniform upwind fix (#742).

The quadratic upwind test previously sorted both the right-hand side and the reference values before comparing, so derivatives assigned to the wrong grid nodes would still pass. The new check maps each free node to its state through get_discrete and variable_index, asserts that every node resolves and that there is one state per free node, and compares the derivatives in grid order for both velocity signs and both coefficient forms. Test-only change.

The Mixed_Derivatives failure is the one fixed by #744.

🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5
Review: unreviewed
Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1

xtalax and others added 2 commits November 25, 2026 20:07
The test resolves each free grid node to its state index, so a derivative
assigned to the wrong node no longer passes a sorted comparison.

Agent-Harness: Claude Code 2.1.325
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.325
Agent-Model: claude-sonnet-5-5
Agent-Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1
Agent-Review: unreviewed
Co-authored-by: Claude Code <[email protected]>
@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

🤖 Automated comment from an AI agent running as @ChrisRackauckas — not written or reviewed by Chris.

PR: #745

Reviewed head: b2f9824
Raw SHA-256: e1211791298435b6d98fd2c33793d986ced48113df90b38d9e6dd0505479cfb3
Source SHA-256: 3c1a99d1ef98d67e82ff30ecab8ad24840162164950a323856821abf53c96c48
Source: standard-review-v1 (harness-log)
Reviewer session: 01a2148d-046c-7ad1-8dfe-730039d92b1f
Slot: 1
Confidence: unknown
Own risk fixed before author rating/discussion: yes
Redaction: ran (substitutions=0)

Risk assessment

  • Risk: low (L2)
  • Verdict: MERGE
  • Reviewed head: b2f9824

Review report

VERDICT: MERGE
Round: 1
Head: b2f9824
Slot: 1
CI: CI is not green
Session: 01a2148d-046c-7ad1-8dfe-730039d92b1f
Reviewer: codex-cli 0.170.0; model: gpt-6.2-sol

Risk

low (L2: the sole changed path is a test file, and the node-by-node comparison catches RHS permutations that sorting hid)

Blocking findings

  • Blocking priorities: None

Non-blocking findings

None.

What I ran

  • GROUP=Convection_NU julia --startup-file=no --project=. -e 'using Pkg; Pkg.test()' on a scratch copy of the reviewed head with Julia 1.12.4 and the job's layered depot. Exit 0. Linear Convection, NonUniform passed 59/59 and Linear Convection, Upwind Non-Uniform Interfaces passed 109/109. Pkg reported Testing MethodOfLines tests passed.
  • julia --startup-file=no --project=. ../node-association-probe.jl passed 76/76. For both signs and both coefficient forms, the indices covered every ODE state once, the inflow had no state index, and the mapped initial states matched the squared grid coordinates. The unmodified RHS matched the analytic value -2 * vel * x to a maximum absolute error of 6.67e-16.
  • The probe swapped the outflow RHS with its neighbor. The sorted assertion accepted all four swaps, while the new assertion rejected all four with maximum absolute node errors of 0.10 and 0.07 for the positive and negative velocities. The new assertion also detected a 1e-5 perturbation at each free node and a sign reversal. It accepted a simultaneous permutation of storage and indices.
  • git diff --check origin/master...HEAD, julia --startup-file=no --project=@runic -m Runic --check test/Convection_NU/MOL_1D_Linear_Convection_NonUniform.jl, and typos test/Convection_NU/MOL_1D_Linear_Convection_NonUniform.jl each exited 0.
  • uv run --locked python --version printed Python 3.13.13 and warned that --locked has no effect outside a project.
  • The session ID in the header is the native ID reported by the running Codex harness.

What I did not verify

Other Julia versions, other test groups, and remote CI. The checkout has no locked Python project environment.

AUTHOR_GRADE: {"task": "test", "score": 5, "difficulty": 2, "rounds": 1, "author_harness": "Claude Code 2.1.325", "author_model": "claude-sonnet-5-5", "note": "The full affected group passed, and the node-specific test rejected the outflow swaps that passed the sorted assertion in all four cases."}

Head link: b2f9824


🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a2148d-046c-7ad1-8dfe-730039d92b1f (no session URL)

@xtalax-droid

Copy link
Copy Markdown
Contributor Author

The only red check on this PR is Mixed_Derivatives (Julia 1 and lts). It is not caused by this change: ModelingToolkit 11.47.0 (released 2026-11-25) now keeps all interior unknowns of stationary problems, so the previously broken return-code assertion at test/Mixed_Derivatives/MOL_Mixed_Deriv.jl:129 passes and Julia reports an unexpected pass as an error. The same failure appears on master and on every open PR. #744 carries the fix (it turns that assertion into a regular test and raises the ModelingToolkit floor to 11.47); once it is merged, this PR needs only a re-run.


🤖 Posted by an AI agent · harness: Claude Code 2.1.325 · model: claude-sonnet-5-5
Review: unreviewed
Session: 6c520c71-764b-4a7e-a484-62d5a95bcfa1

@ChrisRackauckas
ChrisRackauckas merged commit 2e50097 into SciML:master Nov 25, 2026
89 of 91 checks passed
ChrisRackauckas referenced this pull request Nov 26, 2026
Bump version to 1.7.0
Bump version to 1.7.0

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: AI agent <[email protected]>
Agent-Harness: hourly_releases
Agent-Model: none (deterministic)
Agent-Session: local job hourly-release-a8196c0d-e4da-4761-a5ea-083bedf7f947 (no session URL)
Agent-Session: local job hourly-release-cd233b8b-1693-433c-8d21-4c21ffddc425 (no session URL)
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.

4 participants