henry2004y / TestParticle.jl

Test particle tracing in electromagnetic field
https://henry2004y.github.io/TestParticle.jl/dev/
MIT License
15 stars 3 forks source link

Make tspan mutable for Boris #158

Open henry2004y opened 6 months ago

henry2004y commented 6 months ago

Our current implementation for TraceProblem only allows changing the initial conditions, and it only shows up in sol.u[1], but not sol.prob.u0. This is because

Take a look here:

https://github.com/SciML/SciMLBase.jl/blob/3746cda651df79e3d9d7af9aa71e78bd9ecd8ecd/src/ensemble/basic_ensemble_solve.jl#L122-L234

Maybe this is useful too: https://julialang.org/blog/2022/08/julia-1.8-highlights/#const_on_fields_in_mutable_structs