Repository navigation
Correct derivative discontinuity tstop expectation - #4261
ChrisRackauckas merged 1 commit into
Conversation
|
Current-master revalidation update (upstream
Current-master root QA fails two unrelated GlobalDiffEq metadata assertions (41 projects vs 40 and MuladdMacro 0.2.1 vs required 0.2.4). Those exact clean-base failures are fixed and locally validated in #4308. I have not force-updated this branch onto a base whose exact QA tree is red; once that separate fix lands, this branch can be rebased and QA rerun without mixing changes. |
|
The same stale tstop expectation has now reproduced independently in SciMLBase source-triggered downstream CI:
That matches the local fail-before result already recorded here. The full current-source |
5b16576 to
e4d288b
Compare
Co-Authored-By: Chris Rackauckas <[email protected]>
e4d288b to
1ffc6f2
Compare
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed and why
Keep exact equality in the fixed-step
d_discontinuitiestest, but calculate the first post-discontinuity time fromnextfloat(1 / 2). The active derivative discontinuity advances the integrator one ULP before the following1 / 3step, as documented byshift_past_discontinuity!; the previous expression described the no-discontinuity case.This surfaced after #4258 correctly filtered the stale pre-
t0discontinuity which had blocked the real1 / 2entry.Failing before
On clean current OrdinaryDiffEq master
080fa945ba2a01cb1c3654aa24a56cf97fe4919d, Julia 1.12.6:GROUP=InterfaceI JULIA_NUM_THREADS=2 julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test(; coverage=false)'An isolated current/parent source control used the same RK4 solve and printed the exact Float64 bit patterns. Current master produced a two-ULP delta only with
d_discontinuities; parent8c7968faproduced the old exact value because the stale-1 / 2entry still blocked the active discontinuity.Passing after
GROUP=InterfaceI JULIA_NUM_THREADS=2 julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test(; coverage=false)'GROUP=QA JULIA_NUM_THREADS=2 julia +1.12 --startup-file=no --project=. -e 'using Pkg; Pkg.test(; coverage=false)'Julia Runic
--checkon the changed file,typoson the changed file, andgit diff --checkall exited 0.Not verified
I did not run
GROUP=Everything, GPU jobs, or the other Julia-version matrices locally. This test-only change does not touch public API or documentation.