@@ -1027,11 +1027,7 @@ function solve_up(prob::Union{DEProblem, NonlinearProblem}, sensealg, u0, p, arg
1027
1027
_alg = prepare_alg (alg, _prob. u0, _prob. p, _prob)
1028
1028
check_prob_alg_pairing (_prob, alg) # use alg for improved inference
1029
1029
solve_call (_prob, _alg, Base. tail (args)... ; kwargs... )
1030
- elseif isempty (args) # Default algorithm handling
1031
- _prob = get_concrete_problem (prob, ! (typeof (prob) <: DiscreteProblem ); u0 = u0,
1032
- p = p, kwargs... )
1033
- solve_call (_prob, args... ; kwargs... )
1034
- else
1030
+ else # Default algorithm handling
1035
1031
_prob = get_concrete_problem (prob, ! (typeof (prob) <: DiscreteProblem ); u0 = u0,
1036
1032
p = p, kwargs... )
1037
1033
solve_call (_prob, args... ; kwargs... )
@@ -1430,11 +1426,7 @@ function _solve_adjoint(prob, sensealg, u0, p, originator, args...; merge_callba
1430
1426
elseif ! isempty (args) && typeof (args[1 ]) <: DEAlgorithm
1431
1427
alg = args[1 ]
1432
1428
alg, get_concrete_problem (prob, isadaptive (alg); u0 = u0, p = p, kwargs... )
1433
- elseif isempty (args) # Default algorithm handling
1434
- alg = ! (typeof (prob) <: DiscreteProblem )
1435
- alg, get_concrete_problem (prob, alg; u0 = u0, p = p,
1436
- kwargs... )
1437
- else
1429
+ else # Default algorithm handling
1438
1430
alg = ! (typeof (prob) <: DiscreteProblem )
1439
1431
alg, get_concrete_problem (prob, alg; u0 = u0, p = p,
1440
1432
kwargs... )
@@ -1468,11 +1460,7 @@ function _solve_forward(prob, sensealg, u0, p, originator, args...; merge_callba
1468
1460
elseif ! isempty (args) && typeof (args[1 ]) <: DEAlgorithm
1469
1461
alg = args[1 ]
1470
1462
alg, get_concrete_problem (prob, isadaptive (alg); u0 = u0, p = p, kwargs... )
1471
- elseif isempty (args) # Default algorithm handling
1472
- alg = ! (typeof (prob) <: DiscreteProblem )
1473
- alg, get_concrete_problem (prob, alg; u0 = u0, p = p,
1474
- kwargs... )
1475
- else
1463
+ else # Default algorithm handling
1476
1464
alg = ! (typeof (prob) <: DiscreteProblem )
1477
1465
alg, get_concrete_problem (prob, alg; u0 = u0, p = p,
1478
1466
kwargs... )
0 commit comments