|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
#include <NgpModRequests.hpp>
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 | |
| NgpDestroyEntitiesT & | operator= (const NgpDestroyEntitiesT &)=default |
| NgpDestroyEntitiesT (NgpDestroyEntitiesT &&)=default | |
| NgpDestroyEntitiesT & | operator= (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_t & | tickets () 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 |
| using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::memory_space = NgpMemSpace |
| using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::ticket_issuer_t = TicketIssuer<NgpMemSpace> |
| using mundy::mesh::NgpDestroyEntitiesT< NgpMemSpace >::control_space = Kokkos::SharedSpace |
|
default |
|
default |
|
default |
|
default |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
Instead of resizing, we'll just zero out the existing requests to avoid reallocations.
|
inline |
|
friend |