Skip to content

Add implicit Taylor solvers requiring TaylorSeries 2.4 - #4592

Merged
oscardssmith merged 4 commits into
SciML:masterfrom
xbtmkmmm5:feat/taylor-series-implicit-followup
Sep 25, 2026
Merged

oscardssmith merged 4 commits into
SciML:masterfrom
xbtmkmmm5:feat/taylor-series-implicit-followup

Conversation

@xbtmkmmm5

@xbtmkmmm5 xbtmkmmm5 commented Sep 22, 2026 •

Copy link
Copy Markdown

Adds OrdinaryDiffEqTaylorSeriesImplicit with μ-Taylor and Taylor–Padé methods. It requires OrdinaryDiffEqTaylorSeries = "2.4.0" for build_polynomial; the prerequisite was merged in #4006 and version 2.4.0 is released. The branch includes that prerequisite from master, so the local TaylorSeries source agrees with the compatibility range during normal and downgrade resolution.

Removes the unused FastConvergence and VerySlowConvergence imports from OrdinaryDiffEqNonlinearSolve, which prevented the package from loading on Julia 1.10 LTS. Includes the existing OrdinaryDiffEqCore adjustment that aligns adaptive step proposals with representable floating-point time increments, improving the accuracy of the reference solve used by the convergence checks.

Updates the root QA package count from 42 to 43 to include the new implicit subpackage in the MuladdMacro compatibility audit. All 43 packages meet the required version floor. The four original implicit test cases, step sizes, tolerances, and expected orders are unchanged.

Validation:

  • The updated package-count QA testset passes 87/87 assertions on Julia 1.13.0 (791095796). Runic and git diff --check pass.
  • The unchanged solver implementation (48d096b07) passes current-Julia Core CI, Julia 1.10 LTS CI, implicit QA CI, and downgrade CI on Julia 1.11. LTS and downgrade logs each confirm 4/4 convergence tests passed; downgrade uses TaylorSeries 2.4.0 and LinearSolve 5.15.0.
  • Local Julia 1.10.12 Pkg.test: 4/4 pass with coverage and bounds checks.
  • CI for the one-line package-count update is running.

DiffEqBase's repository-wide Julia 1.11 callback-normalization failure in high_level_solve.jl is addressed separately in #4593, which has not yet merged.

@oscardssmith
oscardssmith marked this pull request as ready for review September 25, 2026 19:01
@oscardssmith
oscardssmith merged commit 4e8d61f into SciML:master Sep 25, 2026
257 of 266 checks passed
ChrisRackauckas referenced this pull request Sep 29, 2026
* Bump DiffEqBase to 7.21.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqBDF to 2.4.12

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSDIRK to 2.9.7

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqRosenbrock to 2.7.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqLowOrderRK to 2.2.6

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqTsit5 to 2.1.5

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqVerner to 2.4.2

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

* Bump OrdinaryDiffEqSymplecticRK to 2.2.3

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Agent-Harness: Devin CLI 3000.11.3 (Mac)
Agent-Model: Fusion (claude-opus-5-5 medium + swe-2 medium)
Agent-Session: local transcript ~/.local/share/devin/cli/transcripts/helpful-exception.json

---------

Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Comment on lines +1220 to +1225
if integrator.opts.adaptive && integrator.t isa AbstractFloat && dtnew isa AbstractFloat
# Use the same interval for the state update and the floating-point clock.
# Otherwise, rounding t + dt can accumulate a drift in the integrated time.
dtnew = integrator.tdir * abs(dtnew)
dtnew = (integrator.t + dtnew) - integrator.t
end

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please explain why this change was necessary and which issue it fixed?

ChrisRackauckas-Claude pushed a commit to ChrisRackauckas-Claude/OrdinaryDiffEq.jl that referenced this pull request Oct 7, 2026
…ment

The clock alignment added in 498c765 (SciML#4592) snaps the proposed step so
t + dt lands exactly on the floating-point grid, perturbing dt by up to
one ulp of t. Delay-integrator lag and discontinuity bookkeeping is tied
to the un-shifted step size; on the RADAR5 Waltman problem the perturbed
trajectory diverges (u ~ 1e178 feeds a ~5e-21 lag denominator, the
Jacobian goes non-finite, and GenericFactorization(lu!) throws
"matrix contains Infs or NaNs"). This made lib/DelayDiffEq
GROUP=Regression fail under Pkg.test / CI, which run with
--check-bounds=yes. Exempt AbstractDDEIntegrator from the alignment,
matching the multistep carve-out of SciML#4651; ODE integrators are
unchanged.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/dde-waltman/log.txt on amdci2
ChrisRackauckas added a commit that referenced this pull request Nov 17, 2026
* DelayDiffEq: exempt DDE integrators from calc_dt_propose! clock alignment

The clock alignment added in 498c765 (#4592) snaps the proposed step so
t + dt lands exactly on the floating-point grid, perturbing dt by up to
one ulp of t. Delay-integrator lag and discontinuity bookkeeping is tied
to the un-shifted step size; on the RADAR5 Waltman problem the perturbed
trajectory diverges (u ~ 1e178 feeds a ~5e-21 lag denominator, the
Jacobian goes non-finite, and GenericFactorization(lu!) throws
"matrix contains Infs or NaNs"). This made lib/DelayDiffEq
GROUP=Regression fail under Pkg.test / CI, which run with
--check-bounds=yes. Exempt AbstractDDEIntegrator from the alignment,
matching the multistep carve-out of #4651; ODE integrators are
unchanged.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Devin <[email protected]>
Agent-Harness: Devin CLI 3000.11.3
Agent-Model: swe-2-high
Agent-Session: local session, transcript at /home/crackauc/sandbox/goals/qa-hygiene/jobs/dde-waltman/log.txt on amdci2

* Restore aligned clock intervals for adaptive DDE steps

Remove the DDE exemption from adaptive step alignment. The analytic
large-origin controls fail with accumulated drift before this correction,
and the unchanged Waltman test changes from 2/26 to 26/26 passing.
Add analytic delayed-history and independent-integrator state coverage
to the official Regression group.

DelayDiffEq Regression and QA, Core functional tests, Runic and typos
pass locally. Core QA encounters an inotify EMFILE resource error that
also reproduces on clean latest default and in a standalone OS probe.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Codex <[email protected]>
Agent-Harness: Codex CLI 0.163.0
Agent-Model: gpt-6.1-sol
Agent-Session: local session 01a15cce-5c97-7b23-a6f0-e11b87e67806 (no session URL)

---------

Co-authored-by: ChrisRackauckas-Claude <[email protected]>
Co-authored-by: Devin <[email protected]>
Co-authored-by: Codex <[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.

3 participants