Repository navigation
Fix CheckInit MethodError when abstol is a vector (ODE #1214) - #1464
Merged
ChrisRackauckas merged 2 commits intoJul 24, 2026
Merged
ChrisRackauckas merged 2 commits into
ChrisRackauckas merged 2 commits into
Conversation
`normresid > abstol` MethodErrors when abstol is a vector (OrdinaryDiffEq SciML#1214). Use a weighted residual (componentwise / abstol, norm > 1) for array tolerances, matching OrdinaryDiffEqNonlinearSolve's check_dae_tolerance. Co-Authored-By: Chris Rackauckas <[email protected]>
This was referenced Jul 23, 2026
test/initialization.jl is not included by runtests.jl; the Downstream group runs test/downstream/initialization.jl. Move the SciML#1214 regression coverage to the file that actually executes in CI. Co-Authored-By: Chris Rackauckas <[email protected]>
Member
Author
CI babysit notePR fix pushed
Pushed Downstream reds (not PR-caused)Same master-side pattern as #1462/#1463: Catalyst Local unit tests for |
ChrisRackauckas
marked this pull request as ready for review
July 24, 2026 06:12
Member
Author
|
@JuliaTagBot tag |
Member
Author
|
@JuliaRegistrator register |
|
Comments on pull requests will not trigger Registrator, as it is disabled. Please try commenting on a commit or issue. |
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.
Summary
MethodError: no method matching isless(::Vector{Float64}, ::Float64)inCheckInitwhenabstolis a vector.normresid > abstolis invalid whenabstolis an array (default DAE path usesCheckInitviaDefaultInit).abstol(internalnorm(resid ./ abstol, t) > 1), matchingcheck_dae_tolerancein OrdinaryDiffEqNonlinearSolve.abstolonDAEProblem.Fixes SciML/OrdinaryDiffEq.jl#1214 (default initialization path).
This PR should be ignored until reviewed by @ChrisRackauckas.
Test plan
DAEProblemwith DABDF2/DFBDF/DImplicitEuler succeedsCheckInitFailureErrorwhen residual is largetest/initialization.jl