Skip to content

Commit bc1e73c

Browse files
Bump version and fix VoA length checks for RecursiveArrayTools v4
- Bump version to 7.102.0 - Update RecursiveArrayTools compat to include v4 - Fix length(Δu) and length(Δ) checks in concrete_solve.jl adjoint backpass: use length(.u) for AbstractVectorOfArray since v4 changed length() to return total scalar elements instead of number of inner arrays Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b063ca1 commit bc1e73c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "SciMLSensitivity"
22
uuid = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
3-
version = "7.101.0"
3+
version = "7.102.0"
44
authors = ["Christopher Rackauckas <accounts@chrisrackauckas.com>", "Yingbo Ma <mayingbo5@gmail.com>"]
55

66
[deps]

src/concrete_solve.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ function SciMLBase._concrete_solve_adjoint(
709709
Δu isa AbstractArray{<:AbstractArray} ||
710710
Δu isa AbstractVectorOfArray
711711
) &&
712-
length(Δu) == 1 && i == 1
712+
(Δu isa AbstractVectorOfArray ? length(Δu.u) : length(Δu)) == 1 && i == 1
713713
# user did sol[end] on only_end
714714
x = Δu isa AbstractVectorOfArray ? Δu.u[1] : Δu[1]
715715
if _save_idxs isa Number
@@ -795,7 +795,7 @@ function SciMLBase._concrete_solve_adjoint(
795795
if only_end
796796
eltype(Δ) <: NoTangent && return
797797
ifisa AbstractArray{<:AbstractArray} || Δ isa AbstractVectorOfArray) &&
798-
length(Δ) == 1 && i == 1
798+
isa AbstractVectorOfArray ? length.u) : length(Δ)) == 1 && i == 1
799799
# user did sol[end] on only_end
800800
x = Δ isa AbstractVectorOfArray ? Δ.u[1] : Δ[1]
801801
if _save_idxs isa Number

0 commit comments

Comments
 (0)