@@ -136,7 +136,7 @@ subroutine point_curve(x0, t, k, coef, nctl, ndim, Niter, eps, s, Diff)
136
136
nfVal = 0.5 * nDist** 2
137
137
138
138
! Check if the new point satisfies the wolfe condition
139
- if (nfval < fval + pgrad * wolfe * step) then
139
+ if (nfval <= fval + pgrad * wolfe * step) then
140
140
dist = ndist
141
141
exit lineloop
142
142
end if
@@ -327,7 +327,7 @@ subroutine point_surface(x0, tu, tv, ku, kv, coef, nctlu, nctlv, ndim, niter, ep
327
327
nfval = 0.5 * ndist** 2
328
328
329
329
! Check if the new point satisfies the wolfe condition
330
- if (nfval < fval + pgrad * wolfe * step) then
330
+ if (nfval <= fval + pgrad * wolfe * step) then
331
331
dist = ndist
332
332
exit lineloop
333
333
end if
@@ -647,7 +647,7 @@ subroutine point_volume(x0, tu, tv, tw, ku, kv, kw, coef, nctlu, nctlv, nctlw, n
647
647
nfval = 0.5 * ndist** 2
648
648
649
649
! Check if the new point satisfies the wolfe condition
650
- if (nfval < fval + pgrad * wolfe * step) then
650
+ if (nfval <= fval + pgrad * wolfe * step) then
651
651
dist = ndist
652
652
exit lineloop
653
653
end if
@@ -849,7 +849,7 @@ subroutine curve_curve(t1, k1, coef1, t2, k2, coef2, n1, n2, ndim, Niter, &
849
849
nfval = 0.5 * ndist** 2
850
850
851
851
! Check if the new point satisfies the wolfe condition
852
- if (nfval < fval + pgrad * wolfe * step) then
852
+ if (nfval <= fval + pgrad * wolfe * step) then
853
853
dist = ndist
854
854
exit lineloop
855
855
end if
@@ -1067,7 +1067,7 @@ subroutine curve_surface(tc, kc, coefc, tu, tv, ku, kv, coefs, &
1067
1067
nfVal = 0.5 * nDist** 2
1068
1068
1069
1069
! Check if the new point satisfies the wolfe condition
1070
- if (nfval < fval + pgrad * wolfe * step) then
1070
+ if (nfval <= fval + pgrad * wolfe * step) then
1071
1071
dist = ndist
1072
1072
exit lineloop
1073
1073
end if
0 commit comments