Repository navigation
SDIRK tests: probe ImplicitEuler NLNewton default κ (no product change) - #3855
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
Closed
ChrisRackauckas-Claude wants to merge 1 commit into
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Drop the proposed global ImplicitEuler default of NLNewton(κ=1//10000). That was a product-level workaround for one static-array PDS case and hid false Newton acceptance under Success retcodes. Keep historical defaults (κ=1//100, same as Trapezoid/TRBDF2/NLNewton). Add impliciteuler_nlnewton_default_tests.jl that: - asserts the product default matches NLNewton() - checks default κ on Robertson + linear stiff ODE (adequate) - documents that default κ fails static-array stratospheric PDS (Success but catastrophic RHS↔PDS divergence) - shows call-site κ=1//10000 (and 1e-10) restores equivalence - κ-sweeps physical match quality - shows smaller dt can compensate for loose κ - shows tighter abstol/reltol alone does not fix default-κ PDS - records the PositiveIntegrators-style call-site pattern Test-only (StaticArrays test dep); no algorithms.jl / version change. Co-Authored-By: Chris Rackauckas <[email protected]>
ChrisRackauckas-Claude
force-pushed
the
fix/impliciteuler-pds-statics
branch
from
July 10, 2026 07:51
af8aaca to
d7030c0
Compare
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
Removes the proposed product-level change of
ImplicitEulerdefault fromNLNewton()(κ = 1//100) toNLNewton(κ = 1//10000).That default change was a workaround for one static-array production–destruction (PDS) case. It hid false Newton acceptance under Success retcodes rather than fixing a general ImplicitEuler regression. Nothing in master required a special ImplicitEuler default; other SDIRK methods still use
κ = 1//100.What the default change was (now dropped)
Tests instead (local: ALL_DEFAULT_TESTS_OK)
impliciteuler_nlnewton_default_tests.jlprobes whether the historical default makes sense:Conclusion: default κ is fine for ordinary stiff ODEs; hard static-array PDS needs call-site Newton settings, not a product default change.
Test-only (+ StaticArrays test dep). No algorithms.jl / version bump.