Skip to content

Commit

Permalink
Fix dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Oct 30, 2023
1 parent 89c784a commit a510a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/termination_conditions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function check_convergence(::NormTerminationMode, duₙ, uₙ, uₙ₋₁, absto
du_norm = NONLINEARSOLVE_DEFAULT_NORM(duₙ)
return du_norm abstol || du_norm reltol * NONLINEARSOLVE_DEFAULT_NORM(duₙ .+ uₙ)
end
function check_convergence(::RelNormTerminationMode, duₙ, uₙ, uₙ₋₁, abstol, reltol)
function check_convergence(::RelTerminationMode, duₙ, uₙ, uₙ₋₁, abstol, reltol)
return all(abs.(duₙ) .≤ reltol .* abs.(uₙ))
end
function check_convergence(::Union{RelNormTerminationMode, RelSafeTerminationMode,
Expand Down

0 comments on commit a510a8f

Please sign in to comment.