SciML / SteadyStateDiffEq.jl

Solvers for steady states in scientific machine learning (SciML)
Other
30 stars 22 forks source link

Fix tspan type for complex utype #32

Closed david-pl closed 3 years ago

david-pl commented 3 years ago

With #31 tspan gets converted to a complex type when using a complex u. This causes solve to fail with e.g. MethodError: no method matching isless(::ComplexF64, ::ComplexF64). This PR just makes the type to real fixing that. Also, I added a test for complex u.

ChrisRackauckas commented 3 years ago

Thanks!