Skip to content

Fix v7: second eachindex(sol) in dense_tests, EEst→set_EEst! in TSRKC3#3457

Merged
ChrisRackauckas merged 1 commit intoSciML:v7from
ChrisRackauckas-Claude:fix-v7-eachindex-and-eest
Apr 16, 2026
Merged

Fix v7: second eachindex(sol) in dense_tests, EEst→set_EEst! in TSRKC3#3457
ChrisRackauckas merged 1 commit intoSciML:v7from
ChrisRackauckas-Claude:fix-v7-eachindex-and-eest

Conversation

@ChrisRackauckas-Claude
Copy link
Copy Markdown
Contributor

Summary

Two real test failures on the current v7 CI (PR #3242, SHA 428db4a89d):

Regression_I — Dense Tests (line 69)

#3446 fixed eachindex(sol2)eachindex(sol2.u) at line 118 (2D problem loop) but missed the same pattern at line 69 (1D linear problem loop). Same RAT v4 issue: eachindex(sol) returns CartesianIndices instead of 1:nsteps.

Regression_II — TSRKC3 FieldError

perform_step! for TSRKC3 at rkc_perform_step.jl:1191 and :1323 writes integrator.EEst = ..., but #3422 moved EEst from the integrator struct to the controller cache. Every other sublibrary uses OrdinaryDiffEqCore.set_EEst!(integrator, ...) — these two sites were missed.

Other failures on this run

  • Self-hosted runner registry flakes (AlgConvergence_I, Integrators_I, InterfaceIII, etc.)
  • Downstream (1): upstream Enzyme/FunctionWrappersWrappers version mismatch
  • benchmark, AD: pre-existing

🤖 Generated with Claude Code

- test/regression/ode_dense_tests.jl line 69: second `eachindex(sol2)`
  instance (1D linear problem loop) that was missed by SciML#3446. Same RAT v4
  issue — `eachindex(sol)` now returns CartesianIndices, use
  `eachindex(sol2.u)` for the per-timestep iteration.

- lib/OrdinaryDiffEqStabilizedRK/src/rkc_perform_step.jl lines 1191 and
  1323: `integrator.EEst = ...` throws `FieldError` since SciML#3422 moved
  EEst from the integrator struct to the controller cache. Replace with
  `OrdinaryDiffEqCore.set_EEst!(integrator, ...)` matching every other
  sublibrary.

Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas merged commit 31cce65 into SciML:v7 Apr 16, 2026
56 of 92 checks passed
ChrisRackauckas added a commit that referenced this pull request Apr 20, 2026
…3457)

- test/regression/ode_dense_tests.jl line 69: second `eachindex(sol2)`
  instance (1D linear problem loop) that was missed by #3446. Same RAT v4
  issue — `eachindex(sol)` now returns CartesianIndices, use
  `eachindex(sol2.u)` for the per-timestep iteration.

- lib/OrdinaryDiffEqStabilizedRK/src/rkc_perform_step.jl lines 1191 and
  1323: `integrator.EEst = ...` throws `FieldError` since #3422 moved
  EEst from the integrator struct to the controller cache. Replace with
  `OrdinaryDiffEqCore.set_EEst!(integrator, ...)` matching every other
  sublibrary.

Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ChrisRackauckas added a commit that referenced this pull request Apr 21, 2026
…3457)

- test/regression/ode_dense_tests.jl line 69: second `eachindex(sol2)`
  instance (1D linear problem loop) that was missed by #3446. Same RAT v4
  issue — `eachindex(sol)` now returns CartesianIndices, use
  `eachindex(sol2.u)` for the per-timestep iteration.

- lib/OrdinaryDiffEqStabilizedRK/src/rkc_perform_step.jl lines 1191 and
  1323: `integrator.EEst = ...` throws `FieldError` since #3422 moved
  EEst from the integrator struct to the controller cache. Replace with
  `OrdinaryDiffEqCore.set_EEst!(integrator, ...)` matching every other
  sublibrary.

Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.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