Skip to content

Commit

Permalink
fix MatrixOperator mass_matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
oscardssmith committed Sep 10, 2024
1 parent 59459bf commit 81559b2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/OrdinaryDiffEqDifferentiation/src/derivative_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,9 @@ function calc_W!(W, integrator, nlsolver::Union{Nothing, AbstractNLSolver}, cach
if W.J isa MatrixOperator
J = J.A
end
if mass_matrix isa MatrixOperator
mass_matrix = mass_matrix.A
end
if new_W && !isdae
jacobian2W!(W._concrete_form, mass_matrix, dtgamma, J, W_transform)
end
Expand Down

0 comments on commit 81559b2

Please sign in to comment.