We should document how to run automatic differentiation of models using SciML. Basically we just have to convert outputs to the right type. We have an example of that in fit_FvCB.jl in PlantBiophysics, because LsqFit now uses ForwardDiff by default:
https://github.com/VEZY/PlantBiophysics.jl/blob/1117447b42c649804cbc3846cb5f8a89eb24d7f8/src/fitting/fit_FvCB.jl#L99-L110
See this related issue in PBP: VEZY/PlantBiophysics.jl#89
We should document how to run automatic differentiation of models using SciML. Basically we just have to convert outputs to the right type. We have an example of that in
fit_FvCB.jlin PlantBiophysics, because LsqFit now usesForwardDiffby default:https://github.com/VEZY/PlantBiophysics.jl/blob/1117447b42c649804cbc3846cb5f8a89eb24d7f8/src/fitting/fit_FvCB.jl#L99-L110
See this related issue in PBP: VEZY/PlantBiophysics.jl#89