Closed YingboMa closed 3 weeks ago
CVODE estimates the convergence of the first iteration by reusing the convergence rate of the previous nonlinear solver iteration.
wild! I wonder how that effects SDIRK.
Yeah, this should make SDIRK methods more competitive against BDF methods and Rosenbrock methods as well.
Here's the evolution of the convergence rate for this particular problem. I guess constant extrapolation isn't a bad guess to capture the plateaus.
Here's theta vs model time.
The test failures seem unrelated.
AFAICT the DelayDiffEq test failures are caused by this PR.
type FPSolver has no field prev_θ
Yes I'm very sure that's related to this PR.
For reference, only Interface I is failing on master, and I hope to get to that this weekend.
Many of the regression tests might be too stringent.
Some of the convergence tests are showing big red flags. I don't think it's just a tolerance thing.
Is more logic for step rejections required? I.e. can you use the convergence rate of a rejected step?
The DelayDiffEq failures seem real (although the tests that are failing do seem pretty bad)
CVODE estimates the convergence of the first iteration by reusing the convergence rate of the previous nonlinear solver iteration.
Reference: https://github.com/LLNL/sundials/blob/2abd63bd6cbc354fb4861bba8e98d0b95d65e24a/src/cvodes/cvodes_nls.c#L325-L331
MWE: https://discourse.julialang.org/t/cvode-bdf-outperforms-julia-solvers-for-stiff-system-biology-model/113936
Master branch:
This PR: