Skip to content

Commit 230cf7d

Browse files
Merge pull request #2797 from SciML/fix-formatter-line-splits
Fix unnecessary line splits following Catalyst.jl PR #1306
2 parents 0419467 + b2dcce5 commit 230cf7d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/OrdinaryDiffEqCore/src/integrators/controllers.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,8 +370,7 @@ the following logic is applied:
370370
```julia
371371
if integrator.success_iter > 0
372372
expo = 1 / (alg_adaptive_order(integrator.alg) + 1)
373-
qgus = (integrator.dtacc / integrator.dt) *
374-
(((integrator.EEst^2) / integrator.erracc)^expo)
373+
qgus = (integrator.dtacc / integrator.dt) * (((integrator.EEst^2) / integrator.erracc)^expo)
375374
qgus = max(inv(integrator.opts.qmax),
376375
min(inv(integrator.opts.qmin), qgus / integrator.opts.gamma))
377376
qacc = max(q, qgus)
@@ -433,8 +432,7 @@ function step_accept_controller!(integrator, controller::PredictiveController, a
433432

434433
if integrator.success_iter > 0
435434
expo = 1 / (get_current_adaptive_order(alg, integrator.cache) + 1)
436-
qgus = (integrator.dtacc / integrator.dt) *
437-
FastPower.fastpower((EEst^2) / integrator.erracc, expo)
435+
qgus = (integrator.dtacc / integrator.dt) * FastPower.fastpower((EEst^2) / integrator.erracc, expo)
438436
qgus = max(inv(qmax), min(inv(qmin), qgus / gamma))
439437
qacc = max(q, qgus)
440438
else

lib/OrdinaryDiffEqFIRK/src/controllers.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ function step_accept_controller!(
88

99
if integrator.success_iter > 0
1010
expo = 1 / (get_current_adaptive_order(alg, integrator.cache) + 1)
11-
qgus = (integrator.dtacc / integrator.dt) *
12-
DiffEqBase.fastpow((EEst^2) / integrator.erracc, expo)
11+
qgus = (integrator.dtacc / integrator.dt) * DiffEqBase.fastpow((EEst^2) / integrator.erracc, expo)
1312
qgus = max(inv(qmax), min(inv(qmin), qgus / gamma))
1413
qacc = max(q, qgus)
1514
else

0 commit comments

Comments
 (0)