Skip to content

Conversation

@ChrisRackauckas
Copy link
Member

Summary

  • Fixes all Julia 1.11 deprecation warnings related to AbstractVectorOfArray indexing
  • Changes sol[i]sol.u[i] and asol[i]asol.u[i] patterns across test files
  • Addresses warnings: Base.getindex(VA::AbstractVectorOfArray{T,N,A}, I::Int) is deprecated, use VA.u[I] instead

Changes

Fixed deprecation warnings in 12 test files:

  • test/ensemblegpuarray.jl
  • test/distributed_multi_gpu.jl
  • test/gpu_kernel_de/gpu_ode_regression.jl
  • test/gpu_kernel_de/gpu_sde_regression.jl
  • test/gpu_kernel_de/gpu_sde_convergence.jl
  • test/gpu_kernel_de/finite_diff.jl
  • test/gpu_kernel_de/gpu_ode_continuous_callbacks.jl
  • test/gpu_kernel_de/gpu_ode_discrete_callbacks.jl
  • test/gpu_kernel_de/stiff_ode/gpu_ode_regression.jl
  • test/gpu_kernel_de/stiff_ode/gpu_ode_continuous_callbacks.jl
  • test/gpu_kernel_de/stiff_ode/gpu_ode_discrete_callbacks.jl
  • test/gpu_kernel_de/stiff_ode/gpu_ode_mass_matrix.jl

Total: 107 instances of sol.u[i] and 19 instances of asol.u[i] patterns updated.

Test plan

  • Run existing CI tests to ensure no regressions
  • Verify deprecation warnings are eliminated in Julia 1.11

🤖 Generated with Claude Code

Changes all instances of sol[i] to sol.u[i] and asol[i] to asol.u[i]
across test files to resolve deprecation warnings where:
Base.getindex(VA::AbstractVectorOfArray{T,N,A}, I::Int) is deprecated
in favor of VA.u[I].

Fixed in 12 test files:
- test/ensemblegpuarray.jl
- test/distributed_multi_gpu.jl
- test/gpu_kernel_de/gpu_ode_regression.jl
- test/gpu_kernel_de/gpu_sde_regression.jl
- test/gpu_kernel_de/gpu_sde_convergence.jl
- test/gpu_kernel_de/finite_diff.jl
- test/gpu_kernel_de/gpu_ode_continuous_callbacks.jl
- test/gpu_kernel_de/gpu_ode_discrete_callbacks.jl
- test/gpu_kernel_de/stiff_ode/gpu_ode_regression.jl
- test/gpu_kernel_de/stiff_ode/gpu_ode_continuous_callbacks.jl
- test/gpu_kernel_de/stiff_ode/gpu_ode_discrete_callbacks.jl
- test/gpu_kernel_de/stiff_ode/gpu_ode_mass_matrix.jl

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@ChrisRackauckas ChrisRackauckas force-pushed the fix-abstractvectorofarray-deprecation branch from 6dd8424 to 35dbd01 Compare July 30, 2025 12:31
@ChrisRackauckas ChrisRackauckas merged commit 34501e6 into master Jul 30, 2025
4 of 12 checks passed
@ChrisRackauckas ChrisRackauckas deleted the fix-abstractvectorofarray-deprecation branch July 30, 2025 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants