|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
ArborX neighbor list with Cabana-style dense 2D per-target storage. More...
#include <ArborX2dNeighborList.hpp>
Public Types | |
Aliases | |
| using | memory_space = MemorySpace |
| using | execution_space = typename MemorySpace::execution_space |
| using | size_type = size_t |
| using | source_index_type = size_type |
| using | entity_view_t = Kokkos::View<stk::mesh::Entity*, memory_space> |
| using | count_view_t = Kokkos::View<size_type*, memory_space> |
| using | source_index_view_t = Kokkos::View<source_index_type**, memory_space> |
Public Member Functions | |
Constructors | |
| ArborX2dNeighborList ()=default | |
| Default constructor. | |
| ArborX2dNeighborList (const ArborX2dNeighborList &)=default | |
| Default copy and move constructors/operators. | |
| ArborX2dNeighborList (ArborX2dNeighborList &&)=default | |
| ArborX2dNeighborList & | operator= (const ArborX2dNeighborList &)=default |
| ArborX2dNeighborList & | operator= (ArborX2dNeighborList &&)=default |
| ArborX2dNeighborList (const stk::mesh::Selector &target_selector, const stk::mesh::Selector &source_selector, const entity_view_t &target_entities, const entity_view_t &source_entities, const count_view_t &neighbor_counts, const source_index_view_t &source_indices) | |
| Construct a list from already-built dense storage. | |
Accessors | |
| size_type | num_targets () const noexcept |
| Get the number of enumerable targets. | |
| size_type | num_sources () const noexcept |
| Get the number of enumerable sources. | |
| const stk::mesh::Selector & | target_selector () const noexcept |
| Get the selector defining the target chunk. | |
| const stk::mesh::Selector & | source_selector () const noexcept |
| Get the selector defining the source chunk. | |
| size_type | size () const noexcept |
| Get the total number of stored neighbor pairs. | |
| size_type | max_neighbors_per_target () const noexcept |
| Get the allocated row width for each target. | |
| size_type | num_neighbors (size_type target_index) const |
| Get the number of neighbors for a target ordinal. | |
| source_index_type | source_index (size_type target_index, size_type neighbor_ordinal) const |
| Get the source ordinal for a target and neighbor ordinal. | |
| stk::mesh::Entity | get_neighbor (size_type target_index, size_type neighbor_ordinal) const |
| Get the neighbor entity for a target and neighbor ordinal. | |
| stk::mesh::Entity | target_entity (size_type target_index) const |
| Get the target entity for a target ordinal. | |
| stk::mesh::Entity | source_entity (source_index_type source_index) const |
| Get the source entity for a source ordinal. | |
| entity_view_t | target_entities () const noexcept |
| Get the raw target entity view. | |
| entity_view_t | source_entities () const noexcept |
| Get the raw source entity view. | |
| count_view_t | neighbor_counts () const noexcept |
| Get the raw per-target neighbor count view. | |
| source_index_view_t | source_indices () const noexcept |
| Get the raw dense source-index view. | |
The uniform per-target row width suits GPU pair-parallel dispatch.
| using mundy::search::ArborX2dNeighborList< MemorySpace >::memory_space = MemorySpace |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::execution_space = typename MemorySpace::execution_space |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::size_type = size_t |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::source_index_type = size_type |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::entity_view_t = Kokkos::View<stk::mesh::Entity*, memory_space> |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::count_view_t = Kokkos::View<size_type*, memory_space> |
| using mundy::search::ArborX2dNeighborList< MemorySpace >::source_index_view_t = Kokkos::View<source_index_type**, memory_space> |
|
default |
|
default |
|
default |
|
inline |
| target_selector | [in] Selector defining the target chunk used during the build. |
| source_selector | [in] Selector defining the source chunk used during the build. |
| target_entities | [in] Target entities indexed by dense target ordinal. |
| source_entities | [in] Source entities indexed by dense source ordinal. |
| neighbor_counts | [in] Number of valid entries in each target row. |
| source_indices | [in] Dense target-by-neighbor source ordinal view. |
|
default |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
| target_index | [in] Dense target ordinal. |
|
inline |
| target_index | [in] Dense target ordinal. |
| neighbor_ordinal | [in] Ordinal in the target's neighbor range. |
|
inline |
| target_index | [in] Dense target ordinal. |
| neighbor_ordinal | [in] Ordinal in the target's neighbor range. |
|
inline |
| target_index | [in] Dense target ordinal. |
|
inline |
| source_index | [in] Dense source ordinal. |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |