I use the DifferentialEquations.jl package to solve for the evolution of multiple coupled differential equations by making use of several helper functions. Thereafter, I store the solution using BSON.
Then I load the stored solution for plotting/fitting - this works fine as long as I do not try to interpolate. Furthermore, when I ask Julia to interpolate in the REPL, that works too.
However, the trouble arises when I try to interpolate the (loaded) solution within a new function, viz. - the REPL ends up throwing World Age Errors. I understand from the documentation that all the functions that were used to solve the differential equations must be brought within the scope of the function wherein the interpolation is performed. What confuses me though is that since all the helper/solver functions are already defined, they should therefore automatically be within the scope - which is surprisingly not the case. Is there a simple way to bypass this and interpolate data from the stored BSON file within a new function?
I need the functionality because I cannot apriori decide which time points will be needed for the fits.