Saving Differential Equations Solutions to disk


Hi everyone,
I want to generate an ensemble of Solutions to a differential equation to later study more in depth, so I want to save it to disk (keeping it simple: one file per simulation. Each solution is about 100Mb).

When I try to save the solutions of DifferentialEquations.jl to disk using JDL I get stack overflow errors. Saving just solution.u works and is what I am doing for now, but it loses a considerable amount of convenience due to not keeping everything else that’s in the solution object around.

Any pointers would be appreciated.


See ANN: BSON.jl, for saving your Julia data


In the docs, it recommends using JLD2.jl to save the whole solution.


I haven’t tried BSON.jl though. Maybe that’s worth a try.