-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with stdlib_sorting #428
Conversation
To review also: @wclodius2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, except (possibly) for the change in repeat
, which I don't understand.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to stdlib_sorting_ord_sort.fypp
and stdlib_sorting_sort_index.fypp
are all appropriate. The change to repeat
in test_sorting.f90
is useful if the runtime is too long. The rest of the changes to test the changes the other codes are appropriate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
Could someone with write access review this PR that fixes a bug in stdlib_sort? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cheers, LGTM 👍
Reviews are positive, so I'll merge. Thanks! |
The option
-fcheck=all
of gfortran triggered a problem with the suboutineinsertion_sort
, wheni
becomes equal to0
, and tried to accessarray( i-1 )
(while the lower bound ofarray
is0
.The solution copied what was already implemented in
stdlib_sorting_sort.fypp
.