53 USE ftest_common
, ONLY: init_mpi, finish_mpi, test_abort
54 USE test_idxlist_utils
, ONLY: check_idxlist, test_err_count, &
55 idxlist_pack_unpack_copy
59 INTEGER(xt_int_kind) :: no_idx(1)
60 TYPE(
xt_stripe),
ALLOCATABLE :: stripes(:)
68 CALL check_idxlist(
idxempty, no_idx(1:0))
75 CALL check_intersection
79 IF (
ALLOCATED(stripes)) &
80 CALL test_abort(
"unexpected non-zero amount of stripes for & 85 CALL check_bounding_box
93 IF (test_err_count() /= 0)
CALL test_abort(
"non-zero error count", &
99 SUBROUTINE check_intersection
100 TYPE(xt_idxlist) :: intersection
103 CALL check_idxlist(intersection, no_idx(1:0))
106 END SUBROUTINE check_intersection
108 SUBROUTINE check_bounding_box
109 INTEGER,
PARAMETER :: ndims = 3
110 INTEGER(xt_int_kind),
PARAMETER :: global_start_index = 0
111 INTEGER(xt_int_kind) :: global_size(ndims)
117 IF (any(bounds%size /= 0)) &
118 CALL test_abort(
"ERROR: non-zero boundings box for xt_idxempty in & 119 &xt_idxlist_get_bounding_box", &
122 END SUBROUTINE check_bounding_box
124 END PROGRAM test_idxempty