Open loonatick-src opened 1 year ago
This is most likely because of incompatible caches used for storing the matrix-vector product results -- we need the cache to be polymorphic over floats and dual numbers. The fix is to use get_tmp
and dualcache
from PreallocationTools.jl to initialize the temp buffers in SWHSCache
.
On trying to solve the system using an implicit solver from SciML such as
RadauIIA3
, we get the following error message.Followed by
And the stack trace is entirely functions from SciML packages.
So, make the system AD compatible. Alternatives include using a finite difference approx Jacobian or analytical Jacobian by hand.