Skip to content

Commit 014ba51

Browse files
committed
chore: run formatter
1 parent 25edaa4 commit 014ba51

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

src/iterative_and_periodic.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ end
177177
# Checking for floating point equality is OK here as `DifferentialEquations.jl`
178178
# sets the time exactly to the final time in the last iteration
179179
return integrator.t == last(integrator.sol.prob.tspan) ||
180-
(hasfield(typeof(integrator), :iter) && (integrator.iter == integrator.opts.maxiters))
180+
(hasfield(typeof(integrator), :iter) &&
181+
(integrator.iter == integrator.opts.maxiters))
181182
end
182183

183184
export PeriodicCallback

test/domain_tests.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ general_sol_absval = solve(
4343
prob_absval, BS3();
4444
callback = GeneralDomain(g, [1.0];
4545
autodiff = AutoForwardDiff(),
46-
nlsolve=NewtonRaphson(; autodiff = AutoForwardDiff())),
46+
nlsolve = NewtonRaphson(; autodiff = AutoForwardDiff())),
4747
save_everystep = false)
4848
@test all(x -> x[1] 0, general_sol_absval.u)
4949
@test general_sol_absval.errors[:l∞] < 9.9e-5
@@ -57,7 +57,7 @@ general_t_sol_absval = solve(
5757
prob_absval, BS3();
5858
callback = GeneralDomain(g_t, [1.0];
5959
autodiff = AutoForwardDiff(),
60-
nlsolve=NewtonRaphson(; autodiff = AutoForwardDiff())),
60+
nlsolve = NewtonRaphson(; autodiff = AutoForwardDiff())),
6161
save_everystep = false)
6262
@test general_sol_absval.t general_t_sol_absval.t
6363
@test general_sol_absval.u general_t_sol_absval.u

test/preset_time.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,4 +91,5 @@ sol2 = solve(prob2, Tsit5(), callback = cb1)
9191
@test sol2(48.0 + eps(48.0)) [10.0]
9292

9393
_some_test_func(integrator) = u_modified!(integrator, false)
94-
@inferred PresetTimeCallback(collect(range(0, 10, 100)), _some_test_func, save_positions=(false, false))
94+
@inferred PresetTimeCallback(
95+
collect(range(0, 10, 100)), _some_test_func, save_positions = (false, false))

0 commit comments

Comments
 (0)