Skip to content

Commit 7a50f2a

Browse files
committed
Run Formatter
1 parent 20cf84d commit 7a50f2a

File tree

4 files changed

+13
-7
lines changed

4 files changed

+13
-7
lines changed

src/solver_strategies.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ function ODEProblem{iip}(sys::CoupledSystem, st::SolverIMEX; u0 = nothing,
3838
u0 = isnothing(u0) ? init_u(sys_mtk, dom) : u0
3939
u0 = reshape(u0, :) # DiffEq state must be a vector.
4040

41-
f1, sys_mtk, coord_args = mtk_grid_func(sys_mtk, dom, u0, st.alg;
42-
sparse = st.stiff_sparse, tgrad = st.stiff_tgrad)
41+
f1, sys_mtk,
42+
coord_args = mtk_grid_func(sys_mtk, dom, u0,
43+
st.alg; sparse = st.stiff_sparse,
44+
tgrad = st.stiff_tgrad)
4345

4446
p = MTKParameters(sys_mtk, defaults(sys_mtk))
4547

test/coupled_system_test.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ using OrdinaryDiffEq
6969
want_eqs = [
7070
D(reqn.R) ~ reqn.γ * reqn.I,
7171
D(seqn.S) ~ (-seqn.β * seqn.I * seqn.S) / (seqn.I + seqn.R + seqn.S),
72-
D(ieqn.I) ~ (ieqn.β * ieqn.I * ieqn.S) /
73-
(ieqn.I + ieqn.R + ieqn.S) - ieqn.γ * ieqn.I
72+
D(ieqn.I) ~
73+
(ieqn.β * ieqn.I * ieqn.S) /
74+
(ieqn.I + ieqn.R + ieqn.S) - ieqn.γ * ieqn.I
7475
]
7576

7677
have_eqs = equations(sirfinal)

test/sensitivity_test.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ function EarthSciMLBase.get_scimlop(
2626
for ix in 1:size(u, 1)
2727
for I in II
2828
# Demonstrate coordinate transforms and observed values
29-
x, y, z, fv = obs_f(view(u, :, I), p, t,
29+
x, y,
30+
z,
31+
fv = obs_f(view(u, :, I), p, t,
3032
coords1[I[1]], coords2[I[2]], coords3[I[3]])
3133
# Set derivative value.
3234
du[ix, I] = (x + y + z) * fv

test/solver_strategy_test.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,9 @@ function EarthSciMLBase.get_scimlop(
4141
u = reshape(u, :, sz...)
4242
II = CartesianIndices(size(u)[2:end])
4343
du = vcat([begin
44-
t1, t2, t3, fv = obs_f(view(u, :, I), p, t,
45-
c1[I[1]], c2[I[2]], c3[I[3]])
44+
t1, t2,
45+
t3, fv = obs_f(view(u, :, I), p, t,
46+
c1[I[1]], c2[I[2]], c3[I[3]])
4647
(t1 + t2 + t3) * fv
4748
end
4849
for ix in 1:size(u, 1), I in II]...)

0 commit comments

Comments
 (0)