Skip to content

Commit 18c745a

Browse files
Remove extraneous post_explicit call
1 parent c2be318 commit 18c745a

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/solvers/imex_ark.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ function step_u!(integrator, cache::IMEXARKCache)
9898

9999
i 1 && dss!(U, p, t_exp)
100100

101-
if !(!isnothing(T_imp!) && !iszero(a_imp[i, i])) # Implicit solve
102-
post_explicit!(U, p, t_imp)
103-
else
101+
if !(!isnothing(T_imp!) && !iszero(a_imp[i, i]))
102+
i 1 && post_explicit!(U, p, t_imp)
103+
else # Implicit solve
104104
@assert !isnothing(newtons_method)
105105
@. temp = U
106-
post_explicit!(U, p, t_imp)
106+
i 1 && post_explicit!(U, p, t_imp)
107107
# TODO: can/should we remove these closures?
108108
implicit_equation_residual! = (residual, Ui) -> begin
109109
T_imp!(residual, Ui, p, t_imp)

src/solvers/imex_ssprk.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@ function step_u!(integrator, cache::IMEXSSPRKCache)
104104
end
105105
end
106106

107-
if !(!isnothing(T_imp!) && !iszero(a_imp[i, i])) # Implicit solve
108-
post_explicit!(U, p, t_imp)
109-
else
107+
if !(!isnothing(T_imp!) && !iszero(a_imp[i, i]))
108+
i 1 && post_explicit!(U, p, t_imp)
109+
else # Implicit solve
110110
@assert !isnothing(newtons_method)
111111
@. temp = U
112112
post_explicit!(U, p, t_imp)

0 commit comments

Comments
 (0)