mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Fixed binary_search when list value was same as search value.
This commit is contained in:
parent
0205125d7b
commit
02a727748f
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ contains
|
|||
! Find values at midpoint
|
||||
array_index = L + (R - L)/2
|
||||
testval = array(array_index)
|
||||
if (val > testval) then
|
||||
if (val >= testval) then
|
||||
L = array_index
|
||||
elseif (val < testval) then
|
||||
R = array_index
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue