Repository navigation
Respect ImplicitEuler predictor in IE tableau bootstrap - #3873
Closed
ChrisRackauckas-Claude wants to merge 2 commits into
Closed
ChrisRackauckas-Claude wants to merge 2 commits into
ChrisRackauckas-Claude wants to merge 2 commits into
Conversation
Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Chris Rackauckas <[email protected]>
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR should be ignored until reviewed by @ChrisRackauckas.
Summary
dt * fsalfirstguessPredictor.TrivialfromPredictor.Linearfor ImplicitEulerInvestigation
masterwith the stratospheric reaction problem67d9cd21942832c7da48044714d771ca7cc78183as first badok12=true ok23=truewith matching step counts(30426, 30426, 30426)PositiveIntegrators.jl/Downstream/1.10passed on commitaf4ca8fd6; follow-up commit771fa73ecis Runic formatting onlyTests
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.jlpassed after the code fix and after the Runic formatting follow-upGROUP=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 reacheddownstream/test/runtests.jl:2345, past the former failing assertion at line 1037JULIA_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")'passedODEDIFFEQ_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()'passedJULIA_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-upJULIA_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-upJULIA_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