quantum-exeter / SpiDy.jl

:spider: Non-Markovian stochastic SPIn (and harmonic oscillator) DYnamics.
GNU General Public License v3.0
11 stars 2 forks source link

Errors using example run files with latest version of DifferentialEquations.jl #25

Closed cerisola closed 3 months ago

cerisola commented 3 months ago

Newer versions of DifferentialEquations.jl (and its dependency RecursiveArrayTools.jl) changed the way the solution can be accessed as an array, causing the example run files to error out. Indeed, when running the dynamic files, result in the following error:

% julia run/run_dynamics.jl
Starting...
ERROR: LoadError: TaskFailedException

    nested task error: AssertionError: length(I) == ndims(A.u)
    Stacktrace:
   ....

Apparently, the way the solution was used as an array, although it worked fine before, it was never officially supported (see: https://github.com/SciML/DifferentialEquations.jl/issues/1021). The official way to access the solution from DifferentialEquations.jl is to do `Array(sol)'.