Skip to content

Respect ImplicitEuler predictor in IE tableau bootstrap - #3873

Closed
ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-sdirk-ie-maxorder-predictor
Closed

ChrisRackauckas-Claude wants to merge 2 commits into
SciML:masterfrom
ChrisRackauckas-Claude:fix-sdirk-ie-maxorder-predictor

Conversation

@ChrisRackauckas-Claude

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

Copy link
Copy Markdown
Member

This PR should be ignored until reviewed by @ChrisRackauckas.

Summary

Investigation

  • reproduced the PositiveIntegrators downstream failure on current master with the stratospheric reaction problem
  • clean bisect, skipping resolver-incompatible commits, found 67d9cd21942832c7da48044714d771ca7cc78183 as first bad
  • after the fix, the focused PositiveIntegrators reproducer returns ok12=true ok23=true with matching step counts (30426, 30426, 30426)
  • CI PositiveIntegrators.jl/Downstream/1.10 passed on commit af4ca8fd6; follow-up commit 771fa73ec is Runic formatting only

Tests

  • JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --project=downstream repro_positiveintegrators_stratreac.jl passed after the code fix and after the Runic formatting follow-up
  • GROUP=Downstream JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --color=yes --project=downstream -e 'using Pkg; try; Pkg.develop(map(path -> Pkg.PackageSpec(; path = "lib/$(path)"), readdir("./lib"))); Pkg.test(coverage=true); catch err; err isa Pkg.Resolve.ResolverError || rethrow(); @info "Not compatible with this release. No problem." exception=err; exit(0); end' timed out at 3600s, but reached downstream/test/runtests.jl:2345, past the former failing assertion at line 1037
  • JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --project=lib/OrdinaryDiffEqNonlinearSolve/test/modelingtoolkit -e 'using Pkg; lib_dir = abspath("lib"); Pkg.develop([PackageSpec(path = abspath(".")), PackageSpec(path = abspath("lib/OrdinaryDiffEqNonlinearSolve")), PackageSpec(path = joinpath(lib_dir, "OrdinaryDiffEqBDF")), PackageSpec(path = joinpath(lib_dir, "OrdinaryDiffEqRosenbrock")), PackageSpec(path = joinpath(lib_dir, "OrdinaryDiffEqSDIRK"))]); Pkg.instantiate(); include("lib/OrdinaryDiffEqNonlinearSolve/test/modelingtoolkit/nlstep_tests.jl")' passed
  • ODEDIFFEQ_TEST_GROUP=Core JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --project=lib/OrdinaryDiffEqSDIRK -e 'using Pkg; Pkg.test()' passed
  • JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --project=lib/OrdinaryDiffEqSDIRK -e 'include("lib/OrdinaryDiffEqSDIRK/test/predictor_tests.jl")' passed after the code fix and after the Runic formatting follow-up
  • JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 /home/crackauc/.juliaup/bin/julia +1.10 --project=.runic_tmp_env -e 'using Runic; exit(Runic.main(["--check", "lib/OrdinaryDiffEqSDIRK/src/generic_imex_perform_step.jl", "lib/OrdinaryDiffEqSDIRK/test/predictor_tests.jl"]))' passed after the Runic formatting follow-up
  • JULIA_DEPOT_PATH=/home/crackauc/sandbox/tmp_20260708_051717_3275/.julia_depot_ode_positiveintegrators_master timeout 3600 bash -lc 'git ls-files -z "*.jl" | xargs -0 -n 100 /home/crackauc/.juliaup/bin/julia +1.10 --project=.runic_tmp_env -e '\''using Runic; exit(Runic.main(vcat(["--check"], ARGS)))'\''' passed after the Runic formatting follow-up

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