DifferentialEquations.jl saving data without redundant calculation of control inputs

Thanks for sharing a nice package!

Can I export some dynamical equations with @log from a custom package?
For example,

using MyPackage: predefined_dynamics!  # with @log k = 1
using SimulationLogs


prob = ODEProblem(predefined_dynamics!, x0, tspan)
sol = solve(prob)
out = get_log(sol)
@show out.k  # should be an array filled with 1

Sorry for a weird question if I understood incorrectly (I’m not familiar with that package :slight_smile: ).