Skip to content

Commit f1bb4e1

Browse files
committed
Try using state from beginning of step as guess for implicit solver
1 parent 846afe3 commit f1bb4e1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/src/dev/report_gen.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ using InteractiveUtils: subtypes
44

55
ENV["GKSwstype"] = "nul" # avoid displaying plots
66

7-
include(joinpath(@__DIR__, "..", "plotting_utils.jl"))
87
include(joinpath(pkgdir(ClimaTimeSteppers), "test", "problems.jl"))
8+
include(joinpath(@__DIR__, "..", "plotting_utils.jl"))
99

1010
all_subtypes(::Type{T}) where {T} = isabstracttype(T) ? vcat(all_subtypes.(subtypes(T))...) : [T]
1111

src/solvers/ark_algorithm.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ function step_u!(integrator, cache::ARKAlgorithmCache)
383383
# different from the previous state.
384384
if !isnothing(T_imp!) && !iszero(Δtγ)
385385
# Solve u′ ≈ u_minus_Δu_imp_from_solve + Δtγ * T_imp(u′, p, t_imp).
386+
@. u_on_stage = u # TODO: Is this a good idea?
386387
solve_newton!(
387388
newtons_method,
388389
newtons_method_cache,

0 commit comments

Comments
 (0)