We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b6ae52 commit 64b1b0eCopy full SHA for 64b1b0e
src/stdlib_selection.fypp
@@ -86,6 +86,7 @@ contains
86
if(present(right)) r = right
87
88
if(k < 1_ip .or. k > size(a, kind=ip) .or. l > r .or. l < 1_ip .or. &
89
+ k < l .or. k > r .or. & !i.e. if k is not in the interval [l; r]
90
r > size(a, kind=ip)) then
91
error stop "select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
92
end if
@@ -202,6 +203,7 @@ contains
202
203
204
205
206
207
208
error stop "arg_select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
209
0 commit comments