|
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 | |
| NgpRequestConnectionsT ()=default | |
| Default constructor. Call initialize() before use. | |
| void | initialize () |
| NgpRequestConnectionsT (const NgpRequestConnectionsT &)=default | |
| NgpRequestConnectionsT & | operator= (const NgpRequestConnectionsT &)=default |
| NgpRequestConnectionsT (NgpRequestConnectionsT &&)=default | |
| NgpRequestConnectionsT & | operator= (NgpRequestConnectionsT &&)=default |
| ~NgpRequestConnectionsT ()=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. | |
| FutureConnection | request (size_t ticket, variant< stk::mesh::Entity, FutureEntity > from_entity, variant< stk::mesh::Entity, FutureEntity > to_entity, const stk::mesh::RelationIdentifier ordinal) const |
| Record a connection between two entities with the given ordinal. | |
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::NgpRequestConnectionsT< NgpMemSpace >::memory_space = NgpMemSpace |
| using mundy::mesh::NgpRequestConnectionsT< NgpMemSpace >::ticket_issuer_t = TicketIssuer<NgpMemSpace> |
| using mundy::mesh::NgpRequestConnectionsT< NgpMemSpace >::control_space = Kokkos::SharedSpace |
|
default |
|
default |
|
default |
|
default |
|
inline |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
The lifetime of the tickets for this class should not exceed the class itself
|
inline |
The mapping ( from_entity , ordinal ) -> to_entity must be unique.
Both entities may be either real entities or future entities.
|
inline |
Instead of resizing, we'll just zero out the existing requests to avoid reallocations.
|
inline |
|
friend |