Skip to content

Commit

Permalink
Merge pull request #755 from jClugstor/solution_strip
Browse files Browse the repository at this point in the history
add strip_solution to io docs
  • Loading branch information
ChrisRackauckas authored Sep 9, 2024
2 parents fbefb77 + f6c130f commit 5159e74
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/src/features/io.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,12 @@ work. If none of these are put into scope, the solution type
will still load and hold all of the values (so `sol.u` and `sol.t`
will work), but none of the interface will be available.

If you want a copy of the solution that contains no function information
you can use the function `SciMLBase.strip_solution(sol)`.
This will return a copy of the solution that doesn't have any functions,
which you can serialize and deserialize without having any of the problems
that typically come with serializing functions.

## JLD

Don't use JLD. It's dead. Julia types can be saved via JLD.jl.
Expand Down

0 comments on commit 5159e74

Please sign in to comment.