@@ -242,27 +242,10 @@ PointSearch<DeviceType>::PointSearch(
242
242
for ( unsigned int topo_id = 0 ; topo_id < DTK_N_TOPO; ++topo_id )
243
243
if ( block_cells[topo_id].extent ( 0 ) != 0 )
244
244
{
245
- Kokkos::View<int *, DeviceType> filtered_per_topo_cell_indices;
246
- Kokkos::View<int *, DeviceType> filtered_per_topo_query_ids;
247
- Kokkos::View<double **, DeviceType>
248
- filtered_per_topo_reference_points;
249
- Kokkos::View<bool *, DeviceType> filtered_per_topo_point_in_cell;
250
- Kokkos::View<int *, DeviceType> filtered_per_topo_ranks;
251
- std::tie (
252
- filtered_per_topo_cell_indices, filtered_per_topo_query_ids,
253
- filtered_per_topo_reference_points,
254
- filtered_per_topo_point_in_cell, filtered_per_topo_ranks ) =
255
- performPointInCell ( block_cells[topo_id], bounding_box_to_cell,
256
- imported_cell_indices, imported_points,
257
- imported_query_ids, imported_ranks, topo,
258
- topo_id, topo_size_host ( topo_id ) );
259
-
260
- // Filter the points. Only keep the points that are in cell
261
- filtered_ranks[topo_id] = filterInCell (
262
- filtered_per_topo_point_in_cell,
263
- filtered_per_topo_reference_points,
264
- filtered_per_topo_cell_indices, filtered_per_topo_query_ids,
265
- filtered_per_topo_ranks, topo_id );
245
+ filtered_ranks[topo_id] = performPointInCell (
246
+ block_cells[topo_id], bounding_box_to_cell,
247
+ imported_cell_indices, imported_points, imported_query_ids,
248
+ imported_ranks, topo, topo_id, topo_size_host ( topo_id ) );
266
249
}
267
250
268
251
// Build the _source_to_target_distributor
@@ -548,10 +531,7 @@ Kokkos::View<int *, DeviceType> PointSearch<DeviceType>::filterInCell(
548
531
}
549
532
550
533
template <typename DeviceType>
551
- std::tuple<Kokkos::View<int *, DeviceType>, Kokkos::View<int *, DeviceType>,
552
- Kokkos::View<double **, DeviceType>,
553
- Kokkos::View<bool *, DeviceType>, Kokkos::View<int *, DeviceType>>
554
- PointSearch<DeviceType>::performPointInCell(
534
+ Kokkos::View<int *, DeviceType> PointSearch<DeviceType>::performPointInCell(
555
535
Kokkos::View<double ***, DeviceType> cells,
556
536
Kokkos::View<unsigned int **, DeviceType> bounding_box_to_cell,
557
537
Kokkos::View<int *, DeviceType> imported_cell_indices,
@@ -584,10 +564,14 @@ PointSearch<DeviceType>::performPointInCell(
584
564
topologies[topo_id].topo , filtered_per_topo_reference_points,
585
565
filtered_per_topo_point_in_cell );
586
566
587
- return std::make_tuple (
567
+ // Filter the points. Only keep the points that are in cell
568
+ Kokkos::View<int *, DeviceType> filtered_ranks;
569
+ filtered_ranks = filterInCell (
570
+ filtered_per_topo_point_in_cell, filtered_per_topo_reference_points,
588
571
filtered_per_topo_cell_indices, filtered_per_topo_query_ids,
589
- filtered_per_topo_reference_points, filtered_per_topo_point_in_cell,
590
- filtered_per_topo_ranks );
572
+ filtered_per_topo_ranks, topo_id );
573
+
574
+ return filtered_ranks;
591
575
}
592
576
593
577
template <typename DeviceType>
0 commit comments