|
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 | |
| NgpDestroyConnectionsT ()=default | |
| Default constructor. Call initialize() before use. | |
| void | initialize () |
| NgpDestroyConnectionsT (const NgpDestroyConnectionsT &)=default | |
| NgpDestroyConnectionsT & | operator= (const NgpDestroyConnectionsT &)=default |
| NgpDestroyConnectionsT (NgpDestroyConnectionsT &&)=default | |
| NgpDestroyConnectionsT & | operator= (NgpDestroyConnectionsT &&)=default |
| ~NgpDestroyConnectionsT ()=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. | |
| FutureDestroyConnection | request (size_t ticket, stk::mesh::Entity from_entity, stk::mesh::Entity to_entity, const stk::mesh::RelationIdentifier ordinal) const |
| Record a connection destruction between two entities (from_entity -> to_entity). Both entities must be real entities. | |
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::NgpDestroyConnectionsT< NgpMemSpace >::memory_space = NgpMemSpace |
| using mundy::mesh::NgpDestroyConnectionsT< NgpMemSpace >::ticket_issuer_t = TicketIssuer<NgpMemSpace> |
| using mundy::mesh::NgpDestroyConnectionsT< 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 |