@@ -1427,8 +1427,8 @@ function _solve_adjoint(prob, sensealg, u0, p, originator, args...; merge_callba
1427
1427
alg = args[1 ]
1428
1428
alg, get_concrete_problem (prob, isadaptive (alg); u0 = u0, p = p, kwargs... )
1429
1429
else # Default algorithm handling
1430
- alg = ! ( typeof (prob) <: DiscreteProblem )
1431
- alg, get_concrete_problem (prob, alg ; u0 = u0, p = p,
1430
+ alg = isempty (args) ? nothing : args[ 1 ]
1431
+ alg, get_concrete_problem (prob, ! ( typeof (prob) <: DiscreteProblem ) ; u0 = u0, p = p,
1432
1432
kwargs... )
1433
1433
end
1434
1434
@@ -1461,8 +1461,8 @@ function _solve_forward(prob, sensealg, u0, p, originator, args...; merge_callba
1461
1461
alg = args[1 ]
1462
1462
alg, get_concrete_problem (prob, isadaptive (alg); u0 = u0, p = p, kwargs... )
1463
1463
else # Default algorithm handling
1464
- alg = ! ( typeof (prob) <: DiscreteProblem )
1465
- alg, get_concrete_problem (prob, alg ; u0 = u0, p = p,
1464
+ alg = isempty (args) ? nothing : args[ 1 ]
1465
+ alg, get_concrete_problem (prob, ! ( typeof (prob) <: DiscreteProblem ) ; u0 = u0, p = p,
1466
1466
kwargs... )
1467
1467
end
1468
1468
0 commit comments