Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed bad index
  • Loading branch information
daminton committed May 13, 2021
1 parent edd784a commit 1f87eaf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/util_minimize_bfgs.f90
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ function util_minimize_bfgs(f, N, x1, eps) result(fnum)
conv = 0
S(:) = 0._DP
do k = 1, N
if (abs(grad(j)) > eps) conv = conv + 1
if (abs(grad(k)) > eps) conv = conv + 1
S(k) = -sum(H(:,k) * grad(:))
end do
if (conv == 0) return
Expand Down

0 comments on commit 1f87eaf

Please sign in to comment.