Skip to content

Commit

Permalink
Update solve.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
YingboMa committed Jul 17, 2018
1 parent 67cdd7e commit f12963e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ function DiffEqBase.__init(
allow_extrapolation = alg_extrapolates(alg),
initialize_integrator=true,kwargs...) where {algType<:OrdinaryDiffEqAlgorithm,recompile_flag}

if typeof(prob.f)<:DynamicalODEFunction
if min((mm != I for mm in prob.mass_matrix)...)
if typeof(prob.mass_matrix) <: Tuple
if all(mm != I for mm in prob.mass_matrix)
error("This solver is not able to use mass matrices.")
end
elseif !(typeof(prob)<:DiscreteProblem) &&
Expand Down

0 comments on commit f12963e

Please sign in to comment.