Skip to content

Commit

Permalink
240421.152702.HKT revise comments in cobyla/geometry/setdrop_tr
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Apr 21, 2024
1 parent c67053c commit 9c44db0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fortran/cobyla/geometry.f90
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module geometry_cobyla_mod
!
! Started: July 2021
!
! Last Modified: Sunday, April 21, 2024 PM03:16:37
! Last Modified: Sunday, April 21, 2024 PM03:25:55
!--------------------------------------------------------------------------------------------------!

implicit none
Expand Down Expand Up @@ -168,6 +168,7 @@ function setdrop_tr(ximproved, d, delta, rho, sim, simi) result(jdrop)
score(n + 1) = -ONE
end if

! SCORE(J) is NaN implies SIMID(J) is NaN, but we want ABS(SIMID) to be big. So we exclude such J.
score(trueloc(is_nan(score))) = -ONE

jdrop = 0
Expand Down

0 comments on commit 9c44db0

Please sign in to comment.