Fix for issue https://github.com/JuliaAstro/AstroLib.jl/issues/73 .Removed the _sunpos function, and used two sunpos functions with Real and AbstractVector{<:Real} arguments, still casting the output to float to ensure it is type-stable. Works with most of the outputs of ForwardDiff functions, although can't exactly check the error in the issue as no code is provided to reproduce it.
Fix for issue https://github.com/JuliaAstro/AstroLib.jl/issues/73 .Removed the
_sunpos
function, and used twosunpos
functions with Real andAbstractVector{<:Real}
arguments, still casting the output to float to ensure it is type-stable. Works with most of the outputs ofForwardDiff
functions, although can't exactly check the error in the issue as no code is provided to reproduce it.