ERROR: LoadError: BoundsError: attempt to access 4-element view(::Matrix{ComplexF32}, :, 1) with eltype ComplexF32 at index [2, 2]
Stacktrace:
[1] throw_boundserror(A::SubArray{ComplexF32, 1, Matrix{ComplexF32}, Tuple{Base.Slice{Base.OneTo{Int64}}, Int64}, true}, I::Tuple{Int64, Int64})
@ Base .\abstractarray.jl:737
[2] checkbounds
@ .\abstractarray.jl:702 [inlined]
[3] _setindex!
@ .\abstractarray.jl:1418 [inlined]
[4] setindex!
@ .\abstractarray.jl:1396 [inlined]
[5] multiplicative_noise
@ Z:\Users\hshunt\LabNotebooks\DickeModel\ArraySolveTesting.jl:13 [inlined]
[6] macro expansion
@ C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\ensemblegpuarray\kernels.jl:45 [inlined]
[7] cpu_gpu_kernel
@ C:\Users\henhen724\.julia\packages\KernelAbstractions\MAxUm\src\macros.jl:287 [inlined]
[8] cpu_gpu_kernel(__ctx__::KernelAbstractions.CompilerMetadata{KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicCheck, CartesianIndex{1}, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}, KernelAbstractions.NDIteration.NDRange{1, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}}}, f::typeof(multiplicative_noise), du::Matrix{ComplexF32}, u::Matrix{ComplexF32}, p::Matrix{Tuple{Float32, Float32, Float32}}, t::Float32)
@ DiffEqGPU .\none:0
[9] __thread_run(tid::Int64, len::Int64, rem::Int64, obj::KernelAbstractions.Kernel{KernelAbstractions.CPU, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, typeof(DiffEqGPU.cpu_gpu_kernel)}, ndrange::Tuple{Int64}, iterspace::KernelAbstractions.NDIteration.NDRange{1, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}}, args::Tuple{typeof(multiplicative_noise), Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{Tuple{Float32, Float32, Float32}}, Float32}, dynamic::KernelAbstractions.NDIteration.DynamicCheck)
@ KernelAbstractions C:\Users\henhen724\.julia\packages\KernelAbstractions\MAxUm\src\cpu.jl:117
[10] __run(obj::KernelAbstractions.Kernel{KernelAbstractions.CPU, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, typeof(DiffEqGPU.cpu_gpu_kernel)}, ndrange::Tuple{Int64}, iterspace::KernelAbstractions.NDIteration.NDRange{1, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}, CartesianIndices{1, Tuple{Base.OneTo{Int64}}}}, args::Tuple{typeof(multiplicative_noise), Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{Tuple{Float32, Float32, Float32}}, Float32}, dynamic::KernelAbstractions.NDIteration.DynamicCheck, static_threads::Bool)
@ KernelAbstractions C:\Users\henhen724\.julia\packages\KernelAbstractions\MAxUm\src\cpu.jl:84
[11] (::KernelAbstractions.Kernel{KernelAbstractions.CPU, KernelAbstractions.NDIteration.DynamicSize, KernelAbstractions.NDIteration.DynamicSize, typeof(DiffEqGPU.cpu_gpu_kernel)})(::Function, ::Vararg{Any}; ndrange::Int64, workgroupsize::Int64)
@ KernelAbstractions C:\Users\henhen724\.julia\packages\KernelAbstractions\MAxUm\src\cpu.jl:46
[12] Kernel
@ C:\Users\henhen724\.julia\packages\KernelAbstractions\MAxUm\src\cpu.jl:39 [inlined]
[13] #21
@ C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\ensemblegpuarray\problem_generation.jl:85 [inlined]
[14] sde_determine_initdt(u0::Matrix{ComplexF32}, t::Float32, tdir::Float32, dtmax::Float32, abstol::Float32, reltol::Float32, internalnorm::typeof(DiffEqGPU.diffeqgpunorm), prob::SDEProblem{Matrix{ComplexF32}, Tuple{Float32, Float32}, true, Matrix{Tuple{Float32, Float32, Float32}}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, @Kwargs{}, Nothing}, order::Rational{Int64}, integrator::StochasticDiffEq.SDEIntegrator{SRA1, true, Matrix{ComplexF32}, ComplexF32, Float32, Float32, Matrix{Tuple{Float32, Float32, Float32}}, Float32, Float32, ComplexF32, NoiseProcess{ComplexF32, 3, Float32, Matrix{ComplexF32}, Matrix{ComplexF32}, Vector{Matrix{ComplexF32}}, typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_BRIDGE), Nothing, true, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true},
ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}, Nothing, Matrix{ComplexF32}, RODESolution{ComplexF32, 3, Vector{Matrix{ComplexF32}}, Nothing, Nothing, Vector{Float32}, NoiseProcess{ComplexF32, 3, Float32, Matrix{ComplexF32}, Matrix{ComplexF32}, Vector{Matrix{ComplexF32}}, typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_BRIDGE), Nothing, true, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}, SDEProblem{Matrix{ComplexF32}, Tuple{Float32, Float32}, true, Matrix{Tuple{Float32, Float32, Float32}}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, @Kwargs{}, Nothing}, SRA1, StochasticDiffEq.LinearInterpolationData{Vector{Matrix{ComplexF32}}, Vector{Float32}}, SciMLBase.DEStats, Nothing}, StochasticDiffEq.SRA1Cache{Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{ComplexF32}}, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, Nothing, StochasticDiffEq.SDEOptions{Float32, Float32, PIController{Float32}, typeof(DiffEqGPU.diffeqgpunorm), Nothing, CallbackSet{Tuple{}, Tuple{}}, typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), DiffEqGPU.var"#114#120", DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, Nothing, Nothing, Int64, Float32, Float32, ComplexF32, Tuple{}, Float32, Tuple{}}, Nothing, ComplexF32, Nothing, Nothing})
@ StochasticDiffEq C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\initdt.jl:34
[15] auto_dt_reset!
@ C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\integrators\integrator_interface.jl:355 [inlined]
[16] handle_dt!(integrator::StochasticDiffEq.SDEIntegrator{SRA1, true, Matrix{ComplexF32}, ComplexF32, Float32, Float32, Matrix{Tuple{Float32, Float32, Float32}}, Float32, Float32, ComplexF32, NoiseProcess{ComplexF32, 3, Float32, Matrix{ComplexF32}, Matrix{ComplexF32}, Vector{Matrix{ComplexF32}}, typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_BRIDGE), Nothing, true, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}, Nothing, Matrix{ComplexF32}, RODESolution{ComplexF32, 3, Vector{Matrix{ComplexF32}}, Nothing, Nothing, Vector{Float32}, NoiseProcess{ComplexF32, 3, Float32, Matrix{ComplexF32}, Matrix{ComplexF32}, Vector{Matrix{ComplexF32}}, typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_DIST), typeof(DiffEqNoiseProcess.INPLACE_WHITE_NOISE_BRIDGE), Nothing, true, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, ResettableStacks.ResettableStack{Tuple{Float32, Matrix{ComplexF32}, Matrix{ComplexF32}}, true}, RSWM{Float64}, Nothing, RandomNumbers.Xorshifts.Xoroshiro128Plus}, SDEProblem{Matrix{ComplexF32}, Tuple{Float32, Float32}, true, Matrix{Tuple{Float32, Float32, Float32}}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, @Kwargs{}, Nothing}, SRA1, StochasticDiffEq.LinearInterpolationData{Vector{Matrix{ComplexF32}}, Vector{Float32}}, SciMLBase.DEStats, Nothing}, StochasticDiffEq.SRA1Cache{Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{ComplexF32}, Matrix{ComplexF32}}, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing,
Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, Nothing, StochasticDiffEq.SDEOptions{Float32, Float32, PIController{Float32}, typeof(DiffEqGPU.diffeqgpunorm), Nothing, CallbackSet{Tuple{}, Tuple{}}, typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), DiffEqGPU.var"#114#120", DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, DataStructures.BinaryHeap{Float32, DataStructures.FasterForward}, Nothing, Nothing, Int64, Float32, Float32, ComplexF32, Tuple{}, Float32, Tuple{}}, Nothing, ComplexF32, Nothing, Nothing})
@ StochasticDiffEq C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\solve.jl:643
[17] __init(_prob::SDEProblem{Matrix{ComplexF32}, Tuple{Float32, Float32}, true, Matrix{Tuple{Float32, Float32, Float32}}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, @Kwargs{}, Nothing}, alg::SRA1, timeseries_init::Vector{Any}, ts_init::Vector{Any}, ks_init::Type, recompile::Type{Val{true}}; saveat::Float32, tstops::Tuple{}, d_discontinuities::Tuple{}, save_idxs::Nothing, save_everystep::Bool,
save_noise::Bool, save_on::Bool, save_start::Bool, save_end::Nothing, callback::Nothing, dense::Bool, calck::Bool, dt::Float32, adaptive::Bool, gamma::Rational{Int64}, abstol::Nothing, reltol::Nothing, qmin::Rational{Int64}, qmax::Rational{Int64}, qsteady_min::Int64, qsteady_max::Int64, beta2::Nothing, beta1::Nothing, qoldinit::Rational{Int64}, controller::Nothing, fullnormalize::Bool, failfactor::Int64, delta::Rational{Int64}, maxiters::Int64, dtmax::Float32, dtmin::Float32, internalnorm::typeof(DiffEqGPU.diffeqgpunorm), isoutofdomain::typeof(DiffEqBase.ODE_DEFAULT_ISOUTOFDOMAIN), unstable_check::DiffEqGPU.var"#114#120", verbose::Bool, force_dtmin::Bool, timeseries_errors::Bool, dense_errors::Bool, advance_to_tstop::Bool, stop_at_next_tstop::Bool, initialize_save::Bool, progress::Bool, progress_steps::Int64, progress_name::String, progress_message::typeof(DiffEqBase.ODE_DEFAULT_PROG_MESSAGE), progress_id::Symbol, userdata::Nothing, initialize_integrator::Bool, seed::UInt64, alias_u0::Bool, alias_jumps::Bool, kwargs::@Kwargs{})
@ StochasticDiffEq C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\solve.jl:596
[18] __init (repeats 2 times)
@ C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\solve.jl:18 [inlined]
[19] #__solve#107
@ C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\solve.jl:6 [inlined]
[20] __solve (repeats 4 times)
@ C:\Users\henhen724\.julia\packages\StochasticDiffEq\PgPd0\src\solve.jl:1 [inlined]
[21] solve_call(_prob::SDEProblem{Matrix{ComplexF32}, Tuple{Float32, Float32}, true, Matrix{Tuple{Float32, Float32, Float32}}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, DiffEqGPU.var"#20#25"{typeof(lorenz), typeof(DiffEqGPU.gpu_kernel)}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, DiffEqGPU.var"#21#26"{typeof(multiplicative_noise), typeof(DiffEqGPU.gpu_kernel)}, @Kwargs{}, Nothing}, args::SRA1; merge_callbacks::Bool, kwargshandle::Nothing, kwargs::@Kwargs{adaptive::Bool, unstable_check::DiffEqGPU.var"#114#120", saveat::Float32, callback::Nothing, internalnorm::typeof(DiffEqGPU.diffeqgpunorm)})
@ DiffEqBase C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:612
[22] solve_call
@ C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:569 [inlined]
[23] #solve_up#53
@ C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:1080 [inlined]
[24] solve_up
@ C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:1066 [inlined]
[25] #solve#51
@ C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:1003 [inlined]
[26] batch_solve_up(ensembleprob::EnsembleProblem{SDEProblem{Vector{ComplexF32}, Tuple{Float32, Float32}, true, Tuple{Float32, Float32, Float32}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, typeof(lorenz), typeof(multiplicative_noise), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, typeof(multiplicative_noise), @Kwargs{}, SparseMatrixCSC{Float64, Int64}}, var"#3#4", typeof(SciMLBase.DEFAULT_OUTPUT_FUNC), typeof(SciMLBase.DEFAULT_REDUCTION), Nothing}, probs::Vector{SDEProblem{Vector{ComplexF32}, Tuple{Float32, Float32}, true, Tuple{Float32, Float32, Float32}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, typeof(lorenz), typeof(multiplicative_noise), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing,
typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, typeof(multiplicative_noise), @Kwargs{}, SparseMatrixCSC{Float64, Int64}}}, alg::SRA1, ensemblealg::EnsembleCPUArray, I::UnitRange{Int64}, u0::Matrix{ComplexF32}, p::Matrix{Tuple{Float32, Float32, Float32}}; kwargs::@Kwargs{adaptive::Bool, unstable_check::DiffEqGPU.var"#114#120", saveat::Float32})
@ DiffEqGPU C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\solve.jl:315
[27] batch_solve(ensembleprob::EnsembleProblem{SDEProblem{Vector{ComplexF32}, Tuple{Float32, Float32}, true, Tuple{Float32, Float32, Float32}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, typeof(lorenz), typeof(multiplicative_noise), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, typeof(multiplicative_noise), @Kwargs{}, SparseMatrixCSC{Float64, Int64}}, var"#3#4", typeof(SciMLBase.DEFAULT_OUTPUT_FUNC), typeof(SciMLBase.DEFAULT_REDUCTION),
Nothing}, alg::SRA1, ensemblealg::EnsembleCPUArray, I::UnitRange{Int64}, adaptive::Bool; kwargs::@Kwargs{unstable_check::DiffEqGPU.var"#114#120", saveat::Float32})
@ DiffEqGPU C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\solve.jl:242
[28] macro expansion
@ .\timing.jl:395 [inlined]
[29] __solve(ensembleprob::EnsembleProblem{SDEProblem{Vector{ComplexF32}, Tuple{Float32, Float32}, true, Tuple{Float32, Float32, Float32}, Nothing, SDEFunction{true, SciMLBase.FullSpecialize, typeof(lorenz), typeof(multiplicative_noise), LinearAlgebra.UniformScaling{Bool}, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, Nothing, typeof(SciMLBase.DEFAULT_OBSERVED), Nothing, Nothing}, typeof(multiplicative_noise), @Kwargs{}, SparseMatrixCSC{Float64, Int64}}, var"#3#4", typeof(SciMLBase.DEFAULT_OUTPUT_FUNC), typeof(SciMLBase.DEFAULT_REDUCTION), Nothing}, alg::SRA1, ensemblealg::EnsembleCPUArray; trajectories::Int64, batch_size::Int64, unstable_check::Function, adaptive::Bool, kwargs::@Kwargs{saveat::Float32})
@ DiffEqGPU C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\solve.jl:55
[30] __solve
@ C:\Users\henhen724\.julia\packages\DiffEqGPU\I999k\src\solve.jl:1 [inlined]
[31] #solve#55
@ C:\Users\henhen724\.julia\packages\DiffEqBase\c8MAQ\src\solve.jl:1096 [inlined]
[32] top-level scope
@ Z:\Users\hshunt\LabNotebooks\DickeModel\ArraySolveTesting.jl:32
in expression starting at Z:\Users\hshunt\LabNotebooks\DickeModel\ArraySolveTesting.jl:32
Describe the bug 🐞
Expected behavior
The expected behavior is for the solver to finish without throwing an error and return an accurate solution.
Minimal Reproducible Example 👇
Error & Stacktrace⚠️
Environment (please complete the following information):
using Pkg; Pkg.status()using Pkg; Pkg.status(; mode = PKGMODE_MANIFEST)versioninfo()Additional context
This error is caused by the assumption in the file src > ensemblegpuarray > kernels.jl that the time series for du can be written as a matrix (with one index for ODE coordinate and the next index for time). When a problem has non-diagonal noise you need two coordinate indexes and a time index, so the du time series needs to be a three index tensor or include some flatten and resize adaptor when evaluating the noise function.