Skip to content

Commit

Permalink
Fix nested FIRK methods
Browse files Browse the repository at this point in the history
Signed-off-by: ErikQQY <2283984853@qq.com>
  • Loading branch information
ErikQQY committed Sep 18, 2024
1 parent 82ce197 commit 9cd7d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/solve/firk.jl
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,12 @@ function SciMLBase.solve!(cache::FIRKCacheNested)

# We do the first iteration outside the loop to preserve type-stability of the
# `original` field of the solution
sol_nlprob, info, defect_norm = __perform_mirk_iteration(
sol_nlprob, info, defect_norm = __perform_firk_iteration(
cache, abstol, adaptive; kwargs...)

if adaptive
while SciMLBase.successful_retcode(info) && defect_norm > abstol
sol_nlprob, info, defect_norm = __perform_mirk_iteration(
sol_nlprob, info, defect_norm = __perform_firk_iteration(
cache, abstol, adaptive; kwargs...)
end
end
Expand Down

0 comments on commit 9cd7d77

Please sign in to comment.