Skip to content

Commit

Permalink
230913.233516.HKT replace .not. any <> with all >=<
Browse files Browse the repository at this point in the history
  • Loading branch information
zaikunzhang committed Sep 13, 2023
1 parent aeebbfd commit 03fb703
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fortran/bobyqa/bobyqa.f90
Original file line number Diff line number Diff line change
Expand Up @@ -474,21 +474,21 @@ subroutine bobyqa(calfun, x, f, &

if (present(xl)) then
if (size(xl) == size(x)) then
call assert(.not. any(x < xl), 'X >= XL', srname)
call assert(all(x >= xl), 'X >= XL', srname)
if (present(xhist)) then
do k = 1, nhist
call assert(.not. any(xhist(:, k) < xl), 'XHIST >= XL', srname)
call assert(all(xhist(:, k) >= xl), 'XHIST >= XL', srname)
end do
end if
end if
end if

if (present(xu)) then
if (size(xu) == size(x)) then
call assert(.not. any(x > xu), 'X <= XU', srname)
call assert(all(x <= xu), 'X <= XU', srname)
if (present(xhist)) then
do k = 1, nhist
call assert(.not. any(xhist(:, k) > xu), 'XHIST <= XU', srname)
call assert(all(xhist(:, k) <= xu), 'XHIST <= XU', srname)
end do
end if
end if
Expand Down

0 comments on commit 03fb703

Please sign in to comment.