Skip to content

Commit 6839f2e

Browse files
Merge pull request #228 from CliMA/ck/rm_dss
Remove extraneous `dss!` and `post_explicit!` calls
2 parents 67abbcd + 5b9d849 commit 6839f2e

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "ClimaTimeSteppers"
22
uuid = "595c0a79-7f3d-439a-bc5a-b232dc3bde79"
33
authors = ["Climate Modeling Alliance"]
4-
version = "0.7.13"
4+
version = "0.7.14"
55

66
[deps]
77
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"

src/solvers/imex_ark.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,14 +96,14 @@ function step_u!(integrator, cache::IMEXARKCache)
9696
end
9797
end
9898

99-
dss!(U, p, t_exp)
99+
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: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ function step_u!(integrator, cache::IMEXSSPRKCache)
9494
@. U_exp = (1 - β[i - 1]) * u + β[i - 1] * U_exp
9595
end
9696

97-
dss!(U_exp, p, t_exp)
97+
i 1 && dss!(U_exp, p, t_exp)
9898

9999
@. U = U_exp
100100
if !isnothing(T_imp!) # Update based on implicit tendencies from previous stages
@@ -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)