@@ -89,7 +89,7 @@ function DiffEqBase.__init(
89
89
if any (mm != I for mm in prob. f. mass_matrix)
90
90
error (" This solver is not able to use mass matrices. For compatible solvers see https://docs.sciml.ai/DiffEqDocs/stable/solvers/dae_solve/" )
91
91
end
92
- elseif ! (prob isa DiscreteProblem ) &&
92
+ elseif ! (prob isa SciMLBase . AbstractDiscreteProblem ) &&
93
93
! (prob isa DiffEqBase. AbstractDAEProblem) &&
94
94
! is_mass_matrix_alg (alg) &&
95
95
prob. f. mass_matrix != I
@@ -135,7 +135,7 @@ function DiffEqBase.__init(
135
135
throw (ArgumentError (" Fixed timestep methods can not be run with adaptive=true" ))
136
136
end
137
137
138
- isdae = alg isa DAEAlgorithm || (! (prob isa DiscreteProblem ) &&
138
+ isdae = alg isa DAEAlgorithm || (! (prob isa SciMLBase . AbstractDiscreteProblem ) &&
139
139
prob. f. mass_matrix != I &&
140
140
! (prob. f. mass_matrix isa Tuple) &&
141
141
ArrayInterface. issingular (prob. f. mass_matrix))
@@ -230,7 +230,7 @@ function DiffEqBase.__init(
230
230
uEltypeNoUnits = recursive_unitless_eltype (u)
231
231
tTypeNoUnits = typeof (one (tType))
232
232
233
- if prob isa DiscreteProblem
233
+ if prob isa SciMLBase . AbstractDiscreteProblem
234
234
abstol_internal = false
235
235
elseif abstol === nothing
236
236
if uBottomEltypeNoUnits == uBottomEltype
@@ -244,7 +244,7 @@ function DiffEqBase.__init(
244
244
abstol_internal = real .(abstol)
245
245
end
246
246
247
- if prob isa DiscreteProblem
247
+ if prob isa SciMLBase . AbstractDiscreteProblem
248
248
reltol_internal = false
249
249
elseif reltol === nothing
250
250
if uBottomEltypeNoUnits == uBottomEltype
@@ -379,7 +379,7 @@ function DiffEqBase.__init(
379
379
380
380
QT, EEstT = if tTypeNoUnits <: Integer
381
381
typeof (qmin), typeof (qmin)
382
- elseif prob isa DiscreteProblem
382
+ elseif prob isa SciMLBase . AbstractDiscreteProblem
383
383
# The QT fields are not used for DiscreteProblems
384
384
constvalue (tTypeNoUnits), constvalue (tTypeNoUnits)
385
385
else
@@ -520,7 +520,7 @@ function DiffEqBase.__init(
520
520
do_error_check = true
521
521
event_last_time = 0
522
522
vector_event_last_time = 1
523
- last_event_error = prob isa DiscreteProblem ? false :
523
+ last_event_error = prob isa SciMLBase . AbstractDiscreteProblem ? false :
524
524
(Base. isbitstype (uBottomEltypeNoUnits) ? zero (uBottomEltypeNoUnits) :
525
525
0.0 )
526
526
dtchangeable = isdtchangeable (_alg)
0 commit comments