Mundy: Multibody Nonlocal Dynamics Version of the Day
Loading...
Searching...
No Matches
mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace > Class Template Reference

#include <NgpModRequests.hpp>

Inheritance diagram for mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >:
[legend]

Public Types

using memory_space = NgpMemSpace
using ticket_issuer_t = TicketIssuer<NgpMemSpace>
using control_space = Kokkos::SharedSpace

Public Member Functions

Constructors / Destructors
 NgpDestroyEntitiesT ()=default
 Default constructor. Call initialize() before use.
void initialize ()
 NgpDestroyEntitiesT (const NgpDestroyEntitiesT &)=default
NgpDestroyEntitiesToperator= (const NgpDestroyEntitiesT &)=default
 NgpDestroyEntitiesT (NgpDestroyEntitiesT &&)=default
NgpDestroyEntitiesToperator= (NgpDestroyEntitiesT &&)=default
 ~NgpDestroyEntitiesT ()=default
Control plane (HOST only)
void activate_host ()
 Sets the active memory space to host and synchronizes if needed. While active, both request and the ticket issuer will throw if used from device.
void activate_device ()
 Sets the active memory space to host and synchronizes if needed. While active, both request and the ticket issuer will throw if used from host.
void sync ()
 Synchronize between active and inactive memory spaces.
Actions
unsigned id () const noexcept
 Get our unique index among multiple request helpers.
ticket_issuer_ttickets () const noexcept
 Get the ticket issuer for entity requests.
FutureDestroyEntity destroy (size_t ticket, stk::mesh::Entity entity) const
 Record an entity destruction request.
Mod cycle management
void reset ()
 Clears all internal request data to prepare for a fresh modification cycle.
size_t finalize_count ()
 Finalize counts for this request class. Users may no longer claim tickets after this call.

Friends

Friends <3
template<typename>
class NgpModRequestsT

Member Typedef Documentation

◆ memory_space

template<typename NgpMemSpace>
using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::memory_space = NgpMemSpace

◆ ticket_issuer_t

template<typename NgpMemSpace>
using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::ticket_issuer_t = TicketIssuer<NgpMemSpace>

◆ control_space

template<typename NgpMemSpace>
using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::control_space = Kokkos::SharedSpace

Constructor & Destructor Documentation

◆ NgpDestroyEntitiesT() [1/3]

template<typename NgpMemSpace>
mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::NgpDestroyEntitiesT ( )
default

◆ NgpDestroyEntitiesT() [2/3]

template<typename NgpMemSpace>
mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::NgpDestroyEntitiesT ( const NgpDestroyEntitiesT< NgpMemSpace > & )
default

◆ NgpDestroyEntitiesT() [3/3]

template<typename NgpMemSpace>
mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::NgpDestroyEntitiesT ( NgpDestroyEntitiesT< NgpMemSpace > && )
default

◆ ~NgpDestroyEntitiesT()

template<typename NgpMemSpace>
mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::~NgpDestroyEntitiesT ( )
default

Member Function Documentation

◆ initialize()

template<typename NgpMemSpace>
void mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::initialize ( )
inline

◆ operator=() [1/2]

template<typename NgpMemSpace>
NgpDestroyEntitiesT & mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::operator= ( const NgpDestroyEntitiesT< NgpMemSpace > & )
default

◆ operator=() [2/2]

template<typename NgpMemSpace>
NgpDestroyEntitiesT & mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::operator= ( NgpDestroyEntitiesT< NgpMemSpace > && )
default

◆ activate_host()

template<typename NgpMemSpace>
void mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::activate_host ( )
inline

◆ activate_device()

template<typename NgpMemSpace>
void mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::activate_device ( )
inline

◆ sync()

template<typename NgpMemSpace>
void mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::sync ( )
inline

◆ id()

template<typename NgpMemSpace>
unsigned mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::id ( ) const
inlinenoexcept

◆ tickets()

template<typename NgpMemSpace>
ticket_issuer_t & mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::tickets ( ) const
inlinenoexcept

◆ destroy()

template<typename NgpMemSpace>
FutureDestroyEntity mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::destroy ( size_t ticket,
stk::mesh::Entity entity ) const
inline

◆ reset()

template<typename NgpMemSpace>
void mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::reset ( )
inline

Instead of resizing, we'll just zero out the existing requests to avoid reallocations.

◆ finalize_count()

template<typename NgpMemSpace>
size_t mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::finalize_count ( )
inline

◆ NgpModRequestsT

template<typename NgpMemSpace>
template<typename>
friend class NgpModRequestsT
friend