Skip to content

Commit 628b17b

Browse files
Preserve active FSAL buffers for composite solvers
Keep the ordinary integrator's active FSAL aliases and select cache buffers at the tracing boundary. Composite cache initialization buffers need not belong to the active solver. The existing composite tests fail 2 of 16 checks without this correction and pass all 16 with it. Reactant passes 178/178 and QA passes 109/109. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Codex <[email protected]> Agent-Harness: Codex CLI 0.153.4 Agent-Model: gpt-6-astra Agent-Session: local transcript /home/crackauc/.codex/sessions/2026/09/05/rollout-2026-09-05T07-40-10-01a0715e-73c9-7e21-a18b-c5b0504a4bf3.jsonl
1 parent df53363 commit 628b17b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎lib/OrdinaryDiffEqCore/src/integrators/integrator_utils.jl‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,11 @@ function update_fsal!(integrator)
237237
reset_fsal!(integrator)
238238
else # Do not reeval_fsal, instead copyto! over
239239
if isinplace(integrator.sol.prob)
240-
fsalfirst, fsallast = get_fsalfirstlast(integrator.cache, integrator.u)
240+
fsalfirst, fsallast = if ReactantCore.within_compile()
241+
get_fsalfirstlast(integrator.cache, integrator.u)
242+
else
243+
integrator.fsalfirst, integrator.fsallast
244+
end
241245
recursivecopy!(fsalfirst, fsallast)
242246
else
243247
integrator.fsalfirst = integrator.fsallast

0 commit comments

Comments
 (0)