Skip to content

Commit 5ce12a0

Browse files
committed
add getsize
1 parent 6371246 commit 5ce12a0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,3 +902,6 @@ function resize_J_W!(cache, integrator, i)
902902

903903
nothing
904904
end
905+
906+
getsize(::Val{N}) where {N} = N
907+
getsize(N::Integer) = N

0 commit comments

Comments
 (0)