Skip to content

Conversation

jClugstor
Copy link
Member

Checklist

  • Appropriate tests were added
  • Any code changes were done in a way that does not break public API
  • All documentation related to code changes were updated
  • The new code follows the
    contributor guidelines, in particular the SciML Style Guide and
    COLPRAC.
  • Any new documentation only uses public API

Additional context

Attempt to fix #690

Comment on lines 412 to 430
copy(J.size),
copy(J.input_cache),
copy(J.output_cache)
)
end

function Base.copy(J::StatefulJacobianOperator)
return StatefulJacobianOperator(
copy(J.jac_op),
copy(u),
copy(p)
)
end

function Base.copy(J::StatefulJacobianNormalFormOperator)
return StatefulJacobianNormalFormOperator(
copy(J.vjp_operator),
copy(J.jvp_operator),
copy(J.cache)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to handle the case that something is nothing?

@ChrisRackauckas ChrisRackauckas merged commit de76bd6 into SciML:master Sep 2, 2025
12 of 30 checks passed
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.

Missing copy for SciMLJacobianOperators
2 participants