Skip to content

Commit 81559b2

Browse files
committed
fix MatrixOperator mass_matrix
1 parent 59459bf commit 81559b2

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
@@ -718,6 +718,9 @@ function calc_W!(W, integrator, nlsolver::Union{Nothing, AbstractNLSolver}, cach
718718
if W.J isa MatrixOperator
719719
J = J.A
720720
end
721+
if mass_matrix isa MatrixOperator
722+
mass_matrix = mass_matrix.A
723+
end
721724
if new_W && !isdae
722725
jacobian2W!(W._concrete_form, mass_matrix, dtgamma, J, W_transform)
723726
end

0 commit comments

Comments
 (0)