You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Skip J reuse logic entirely for non-W-methods (IIP + OOP)
Non-W-methods (strict Rosenbrock like Rodas5P) always recompute J and W.
Bypass the reuse decision, newJW hint, and jac_reuse bookkeeping entirely
for these methods. The jac_reuse mutations (pending_dtgamma, last_step_iter)
during the forward pass interfere with Enzyme + Krylov solvers, causing
Rodas5P to lose 5th-order convergence (observed order 1.74).
IIP path: use original calc_W! without newJW hint for non-W-methods.
OOP path: early return to standard calc_tderivative + calc_W path.
Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments