Skip to content

Commit

Permalink
Update src/dfsane.jl
Browse files Browse the repository at this point in the history
Co-authored-by: Avik Pal <[email protected]>
  • Loading branch information
axla-io and avik-pal authored Sep 21, 2023
1 parent 87f3dd3 commit ebdcb4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dfsane.jl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ function perform_step!(cache::DFSaneCache{false})
test_norm = sqrt(sum(abs2, cache.fuₙ₋₁))
if test_norm > 1
cache.σₙ = 1.0
elseif testnorm < 1e-5
elseif test_norm < 1e-5
cache.σₙ = 1e5
else
cache.σₙ = 1.0 / test_norm
Expand Down

0 comments on commit ebdcb4e

Please sign in to comment.