Skip to content
This repository was archived by the owner on Jul 19, 2023. It is now read-only.

Commit 2fd0881

Browse files
Define resize on JacVecOperators
1 parent dc7e356 commit 2fd0881

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "DiffEqOperators"
22
uuid = "9fdde737-9c7f-55bf-ade8-46b3f136cc48"
33
authors = ["Chris Rackauckas <accounts@chrisrackauckas.com>"]
4-
version = "4.29.0"
4+
version = "4.30.0"
55

66
[deps]
77
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"

src/jacvec_operators.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,11 @@ function LinearAlgebra.mul!(du::AbstractVector,L::JacVecOperator,x::AbstractVect
140140
end
141141
end
142142

143+
function Base.resize!(J::JacVecOperator,i)
144+
resize!(J.cache1,i)
145+
resize!(J.cache2,i)
146+
end
147+
143148
### AnalyticalOperator Implementation
144149

145150
mutable struct AnalyticalJacVecOperator{T,F,uType,P,tType,O} <: DiffEqBase.AbstractDiffEqLinearOperator{T}

0 commit comments

Comments
 (0)