Skip to content

Commit 724fbee

Browse files
committed
addition of tests for sort_adjoint
1 parent 54fc607 commit 724fbee

File tree

2 files changed

+357
-11
lines changed

2 files changed

+357
-11
lines changed

src/stdlib_sorting_sort_adjoint.fypp

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,19 +103,11 @@ contains
103103

104104
${t2}$, allocatable :: buf(:)
105105
${ti}$, allocatable :: ibuf(:)
106-
integer(int_index) :: array_size, i
106+
integer(int_index) :: array_size
107107
integer(int_index) :: stat
108108

109109
array_size = size(array, kind=int_index)
110110

111-
if ( array_size > huge(adjoint_array)) then
112-
error stop "Too many entries for the kind of adjoint_array."
113-
end if
114-
115-
if ( array_size > size(adjoint_array, kind=int_index) ) then
116-
error stop "Too many entries for the size of adjoint_array."
117-
end if
118-
119111
if ( optval(reverse, .false.) ) then
120112
call reverse_segment( array, adjoint_array )
121113
end if

0 commit comments

Comments
 (0)