Skip to content

Commit

Permalink
fixed linesearch equation
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Dec 14, 2021
1 parent a9b0a86 commit e7c6f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nlesolver_module.f90
Original file line number Diff line number Diff line change
Expand Up @@ -783,7 +783,7 @@ subroutine backtracking_linesearch(me,xold,p,fjac,x,f,fvec)
end if
end if

if ((f - 0.5_wp * ftmp >= alpha*t) .or. min_alpha_reached) then
if (((f - ftmp) / 2.0_wp >= alpha*t) .or. min_alpha_reached) then
if (min_alpha_reached) then
write(me%iunit,'(A)') ' Minimum alpha reached'
end if
Expand Down

0 comments on commit e7c6f5c

Please sign in to comment.