Skip to content

Commit 3fb8930

Browse files
jClugstorChrisRackauckas
authored andcommitted
use correct constructors for JacobianOperators in copy
1 parent 661c764 commit 3fb8930

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/SciMLJacobianOperators/src/SciMLJacobianOperators.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,8 +404,8 @@ function get_dense_ad(ad::AutoSparse)
404404
return dense_ad
405405
end
406406

407-
function Base.copy(J::JacobianOperator)
408-
return JacobianOperator(
407+
function Base.copy(J::JacobianOperator{iip, T}) where {iip, T}
408+
return JacobianOperator{iip,T}(
409409
J.mode,
410410
J.jvp_op,
411411
J.vjp_op,
@@ -423,8 +423,8 @@ function Base.copy(J::StatefulJacobianOperator)
423423
)
424424
end
425425

426-
function Base.copy(J::StatefulJacobianNormalFormOperator)
427-
return StatefulJacobianNormalFormOperator(
426+
function Base.copy(J::StatefulJacobianNormalFormOperator{T}) where {T}
427+
return StatefulJacobianNormalFormOperator{T}(
428428
J.vjp_operator === nothing ? nothing : copy(J.vjp_operator),
429429
J.jvp_operator === nothing ? nothing : copy(J.jvp_operator),
430430
J.cache === nothing ? nothing : copy(J.cache)

0 commit comments

Comments
 (0)