Skip to content

Commit

Permalink
add error message
Browse files Browse the repository at this point in the history
  • Loading branch information
tmigot committed Nov 28, 2022
1 parent 4a2c85d commit 7825b1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/CaNNOLeS.jl
Original file line number Diff line number Diff line change
Expand Up @@ -408,6 +408,8 @@ function SolverCore.solve!(
if ρ > params[:ρmax] || !newton_success || any(isinf.(d)) || any(isnan.(d)) || fx T(1e60) # Error on hs70
internal_msg = if ρ > params[:ρmax]
"ρ → ∞"
elseif !newton_success
"Failure in Newton step computation"
elseif any(isinf.(d))
"d → ∞"
elseif any(isnan.(d))
Expand Down

0 comments on commit 7825b1e

Please sign in to comment.