RecursiveArrayTools.jl icon indicating copy to clipboard operation
RecursiveArrayTools.jl copied to clipboard

retcode field in DiffEqArray

Open ivborissov opened this issue 3 years ago • 0 comments

As discussed in Slack. DiffEqArray is a convenient way to reduce Solution type and wrap (u,t) results, it seems reasonable to add optional retcode field to DiffEqArray. What do you think? My current setup is: I run ensemble simulations and reduce each simulation to a DiffEqArray storing just (u,t) . Some parameters sets may result in Unstable retcode or Terminated if some termination criteria is present. To filter such simulations I define a solution type like

struct MySol
 sol::DiffEqArray
 retcode::Symbol
end

to save both solution and it's retcode

ivborissov avatar May 09 '22 15:05 ivborissov