You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/OrdinaryDiffEqCore/src/solve.jl
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -112,7 +112,7 @@ function DiffEqBase.__init(
112
112
ifonly_diagonal_mass_matrix(alg) &&
113
113
prob.f.mass_matrix isa AbstractMatrix &&
114
114
!isdiag(prob.f.mass_matrix)
115
-
error("$(typeof(alg).name.name) only works with diagonal mass matrices. Please choose a solver suitable for your problem (e.g. Rodas5P)")
115
+
throw(ArgumentError("$(typeof(alg).name.name) only works with diagonal mass matrices. Please choose a solver suitable for your problem (e.g. Rodas5P)"))
116
116
end
117
117
118
118
if!isempty(saveat) && dense
@@ -131,7 +131,10 @@ function DiffEqBase.__init(
131
131
!(alg isa OrdinaryDiffEqCompositeAlgorithm) &&
132
132
!(alg isa DAEAlgorithm)) ||!adaptive ||!isadaptive(alg)) &&
0 commit comments