File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,9 @@ contains
85
85
r = size(a, kind=ip)
86
86
if(present(right)) r = right
87
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
88
+ if(l > r .or. l < 1_ip .or. r > size(a, kind=ip) &
89
+ .or. k < l .or. k > r & !i.e. if k is not in the interval [l; r]
90
+ ) then
91
91
error stop "select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
92
92
end if
93
93
@@ -202,9 +202,9 @@ contains
202
202
error stop "arg_select must have size(a) == size(indx)"
203
203
end if
204
204
205
- if(k < 1_ip .or. k > size(a, kind=ip) .or. l > r .or. l < 1_ip .or. &
206
- k < l .or. k > r .or. & !i.e. if k is not in the interval [l; r]
207
- r > size(a, kind=ip) ) then
205
+ if(l > r .or. l < 1_ip .or. r > size(a, kind=ip) &
206
+ .or. k < l .or. k > r & !i.e. if k is not in the interval [l; r]
207
+ ) then
208
208
error stop "arg_select must have 1 <= k <= size(a), and 1 <= left <= right <= size(a)";
209
209
end if
210
210
You can’t perform that action at this time.
0 commit comments