Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwilliams committed Mar 6, 2024
1 parent f25b75f commit 05c6259
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/simulated_annealing.F90
Original file line number Diff line number Diff line change
Expand Up @@ -644,6 +644,7 @@ subroutine sa(me, x, rt, t, vm, xopt, fopt, nacc, nfcnev, ier)
end if

! check termination criteria.
quit = .false.
! first, check `f` if the known value is available
if (me%optimal_f_specified) then
quit = abs(me%func(fopt) - me%optimal_f) <= abs(me%optimal_f_tol)
Expand Down

0 comments on commit 05c6259

Please sign in to comment.