Skip to content

Commit

Permalink
Update src/dense/generic_dense.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Dec 10, 2023
1 parent deded50 commit c334bca
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/dense/generic_dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -318,15 +318,14 @@ function get_differential_vars(f, idxs, size)
if hasproperty(f, :mass_matrix)
mm = f.mass_matrix
if mm isa UniformScaling
# already correct
return nothing
elseif isdiag(mm)
differential_vars = reshape(diag(mm) .!= 0, size)
else
# QR factorization
# @show typeof(mm)
return missing # interpret missing downstream as not implemented
end
end
if idxs === nothing || differential_vars === nothing
if idxs === nothing
return differential_vars
else
return @view differential_vars[idxs]
Expand Down

0 comments on commit c334bca

Please sign in to comment.