Skip to content

Commit

Permalink
fix rosenbrock direct callout
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Aug 7, 2024
1 parent 2e162ad commit 40dc728
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/OrdinaryDiffEqCore/src/solve.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function DiffEqBase.__init(

if alg isa OrdinaryDiffEqRosenbrockAdaptiveAlgorithm &&
# https://github.com/SciML/OrdinaryDiffEq.jl/pull/2079 fixes this for Rosenbrock23 and 32
!(alg isa Union{Rosenbrock23, Rosenbrock32}) &&
!only_diagonal_mass_matrix(alg) &&
prob.f.mass_matrix isa AbstractMatrix &&
all(isequal(0), prob.f.mass_matrix)
# technically this should also warn for zero operators but those are hard to check for
Expand Down

0 comments on commit 40dc728

Please sign in to comment.