Skip to content

Honor ImplicitEuler first-stage predictor - #3870

Closed
ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-impliciteuler-predictor
Closed

ChrisRackauckas-Claude wants to merge 1 commit into
SciML:masterfrom
ChrisRackauckas-Claude:agent/fix-impliciteuler-predictor

Conversation

@ChrisRackauckas-Claude

@ChrisRackauckas-Claude ChrisRackauckas-Claude commented Jul 10, 2026 •

Copy link
Copy Markdown
Member

Ignore this PR until reviewed by @ChrisRackauckas.

Summary

  • honor Predictor.Trivial, Predictor.Linear, and Predictor.MaxOrder when seeding the implicit first stage of direct ImplicitEuler solves
  • retain the linear seed for BDF algorithms that reuse the Implicit Euler tableau without exposing a predictor field
  • add in-place and out-of-place regression coverage
  • bump OrdinaryDiffEqSDIRK to v2.8.1

Investigation

PositiveIntegrators downstream failed at test/runtests.jl:1037 for the stratospheric PDS with ImplicitEuler(predictor = Predictor.Trivial): 125363 passed / 1 failed in run 29112034545.

A clean git bisect identified 67d9cd21942832c7da48044714d771ca7cc78183 (#3694) as the first bad commit. That change made the IE-tableau path always use the linear dt * fsalfirst seed, overriding the public predictor selection. This targeted fix restores the pre-regression direct-IE semantics without changing the global NLNewton tolerance discussed in #3855, and preserves #3694's ABDF2 bootstrap behavior.

Local verification (Julia 1.10.11)

  • exact PositiveIntegrators stratospheric reproducer: all three solves had 30426 saved steps; both pairwise isapprox checks passed
  • Pkg.test() for OrdinaryDiffEqSDIRK with the QA group excluded because of the independently reproduced master QA-environment leak: 57 tableau, 109 predictor, 102 convergence (+2 pre-existing broken), and 8 DAE tests passed
  • ABDF2 and ABDF2 + NLFunctional convergence orders remained approximately 1.99 for final, L2, and Linf norms
  • Runic v1.7.0 --check passed on all changed Julia files

The full PositiveIntegrators downstream suite passed locally: 125364/125364; see the follow-up comment for exact output.

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

Full local downstream verification completed on Julia 1.10.11:

Test Summary:                |   Pass   Total     Time
PositiveIntegrators.jl tests | 125364  125364  72m20.6s
Testing PositiveIntegrators tests passed
Elapsed wall time: 1:15:57
Maximum resident set size: 8527940 kB
Exit status: 0

After the final rebase onto 521923a2b, I also reran the exact stratospheric reproducer: all solve lengths were 30426 and both pairwise isapprox checks passed (exit 0).

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member Author

CI monitoring note: the PositiveIntegrators job did not report a test assertion. Its self-hosted runner lost communication after 1h8m6s, and GitHub has no log blob (404). The complete local run passed 125364/125364 but peaked at 8.53 GB RSS, which exceeds the runner profile used by the failing job. This is consistent with runner OOM/resource loss; the numerical regression itself is covered by the exact post-rebase pass.

ChrisRackauckas added a commit that referenced this pull request Jul 12, 2026
…seed (#3879)

Restore the public predictor selection for the implicit first stage of
direct ImplicitEuler solves, regressed by #3694 which always used the
linear `dt * fsalfirst` seed. `Trivial` now seeds z = 0, `Linear` seeds
z = dt·f(uprev), and `MaxOrder` extrapolates the previous step's interpolant.

BDF algorithms (e.g. ABDF2) that reuse the IE tableau via `cache.eulercache`
without a `predictor` field keep the linear bootstrap seed through the
`!hasproperty(alg, :predictor)` gate — provably the same seed as master.

Also fix an out-of-place crash: the MaxOrder branch used the in-place
`current_extrapolant!(u, …)`, which throws `fill!(::Float64, ::Float64)` for
scalar/SVector out-of-place `u`. The out-of-place path now uses the
non-mutating `current_extrapolant`.

Add Trivial/Linear/MaxOrder regression coverage on both the in-place and
out-of-place paths, and bump OrdinaryDiffEqSDIRK to v2.8.1.

Combines and supersedes #3870 and #3873.

Co-authored-by: ChrisRackauckas-Claude <[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