Skip to content

Commit

Permalink
require ODEProblem
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jan 21, 2022
1 parent 659d98e commit f966e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/alg_utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ function DiffEqBase.prepare_alg(alg::Union{OrdinaryDiffEqAdaptiveImplicitAlgorit
(prob.f isa SplitFunction && prob.f.f1 isa SciMLBase.AbstractDiffEqOperator)

linsolve = LinearSolve.defaultalg(prob.f.f,u0)
elseif prob.f.mass_matrix === nothing || (prob.f.mass_matrix !== nothing &&
typeof(prob.f.mass_matrix) == prob.f.jac_prototype)
elseif prob isa ODEProblem && (prob.f.mass_matrix === nothing || (prob.f.mass_matrix !== nothing &&
typeof(prob.f.mass_matrix) == prob.f.jac_prototype))
linsolve = LinearSolve.defaultalg(prob.f.jac_prototype,u0)
else
# If mm is a sparse matrix and A is a DiffEqArrayOperator, then let linear
Expand Down

0 comments on commit f966e37

Please sign in to comment.