Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change comment following @ivan-pi
  • Loading branch information
jvdp1 committed Dec 3, 2021
commit 0312d3dbe7ff95c01fb2443dcd3dea315844ef84
4 changes: 2 additions & 2 deletions src/stdlib_selection.fypp
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ contains
if(l > r .or. l < 1_ip .or. r > size(a, kind=ip) &
.or. k < l .or. k > r & !i.e. if k is not in the interval [l; r]
) then
error stop "select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
error stop "select must have 1 <= left <= k <= right <= size(a)";
end if

searchk: do
Expand Down Expand Up @@ -205,7 +205,7 @@ contains
if(l > r .or. l < 1_ip .or. r > size(a, kind=ip) &
.or. k < l .or. k > r & !i.e. if k is not in the interval [l; r]
) then
error stop "arg_select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
error stop "arg_select must have 1 <= left <= k <= right <= size(a)";
end if

searchk: do
Expand Down