DifferentialEquations.jl has an expressive callback system which allows for customizable transformations of te solver behavior. DiffEqCallbacks.jl is a library of pre-built callbacks which makes it easy to transform the solver into a domain-specific simulation tool.
To install DiffEqCallbacks.jl, use the Julia package manager:
using Pkg Pkg.add("DiffEqCallbacks")
To use the callbacks provided in this library with solvers, simply pass the callback to the solver via the
callback keyword argument:
sol = solve(prob,alg;callback=cb)
For more information on using callbacks, see the manual page.
Note that DiffEqCallbacks.jl is not a required dependency for the callback mechanism. DiffEqCallbacks.jl is simply a library of pre-made callbacks, not the library which defines the callback system. Callbacks are defined in the SciML interface at SciMLBase.jl.
- Please refer to the SciML ColPrac: Contributor's Guide on Collaborative Practices for Community Packages for guidance on PRs, issues, and other matters relating to contributing to SciML.
- There are a few community forums: