|
Mundy: Multibody Nonlocal Dynamics Version of the Day
|
#include <NgpLinkData.hpp>
Public Member Functions | |
Constructors and destructor | |
| NgpLinkDataT ()=default | |
| Default constructor. | |
| NgpLinkDataT (const NgpLinkDataT &)=default | |
| Default copy or move constructors/operators. | |
| NgpLinkDataT (NgpLinkDataT &&)=default | |
| NgpLinkDataT & | operator= (const NgpLinkDataT &)=default |
| NgpLinkDataT & | operator= (NgpLinkDataT &&)=default |
| NgpLinkDataT (const LinkData &link_data) | |
| Canonical constructor. | |
| virtual | ~NgpLinkDataT ()=default |
| Destructor. | |
Getters | |
| bool | is_valid () const |
| Get if the link data is valid. | |
| const stk::mesh::MetaData & | mesh_meta_data () const |
| Fetch the bulk data's meta data manager. | |
| stk::mesh::MetaData & | mesh_meta_data () |
| Fetch the bulk data's meta data manager. | |
| const LinkMetaData & | link_meta_data () const |
| Fetch the link meta data manager. | |
| LinkMetaData & | link_meta_data () |
| Fetch the link meta data manager. | |
| const stk::mesh::BulkData & | bulk_data () const |
| Fetch the bulk data manager we extend. | |
| stk::mesh::BulkData & | bulk_data () |
| Fetch the bulk data manager we extend. | |
| LinkData & | link_data () |
| Fetch our link data on the host. | |
| const LinkData & | link_data () const |
| stk::mesh::EntityRank | link_rank () const noexcept |
| Fetch the link rank. | |
| const stk::mesh::NgpMesh & | ngp_mesh () const noexcept |
| Fetch the ngp mesh. | |
| stk::mesh::NgpMesh & | ngp_mesh () noexcept |
CSR interface | |
| NgpLinkCSRDataT< NgpMemSpace > & | crs_data () noexcept |
| const NgpLinkCSRDataT< NgpMemSpace > & | crs_data () const noexcept |
| void | crs_modify_on_host () |
| void | crs_modify_on_device () |
| bool | crs_need_sync_to_host () const |
| bool | crs_need_sync_to_device () const |
| void | crs_sync_to_host () |
| void | crs_sync_to_device () |
| void | crs_clear_host_sync_state () |
| void | crs_clear_device_sync_state () |
COO interface | |
| NgpLinkCOODataT< NgpMemSpace > & | coo_data () noexcept |
| const NgpLinkCOODataT< NgpMemSpace > & | coo_data () const noexcept |
| void | coo_modify_on_host () |
| void | coo_modify_on_device () |
| bool | coo_need_sync_to_host () const |
| bool | coo_need_sync_to_device () const |
| void | coo_sync_to_host () |
| void | coo_sync_to_device () |
| void | coo_clear_host_sync_state () |
| void | coo_clear_device_sync_state () |
CSR/COO interactions | |
| bool | is_crs_up_to_date (const stk::mesh::Selector &selector) |
| Check if the CSR connectivity is up-to-date for the given link subset selector. | |
| bool | is_crs_up_to_date () |
| Check if the CSR connectivity is up-to-date for all links. | |
| void | update_crs_from_coo (const stk::mesh::Selector &selector) |
| Propagate changes made to the COO connectivity to the CSR connectivity for the given link subset selector. This takes changes made via the declare/destroy_relation functions or request/destroy links and updates the CSR connectivity to reflect these changes. | |
| void | update_crs_from_coo () |
| Propagate changes made to the COO connectivity to the CSR connectivity. | |
| void | check_crs_coo_consistency (const stk::mesh::Selector &selector) |
| Check consistency between the COO and CSR connectivity for the given selector. | |
| void | check_crs_coo_consistency () |
| Check consistency between the COO and CSR connectivity for all links. | |
| void | update_post_mesh_mod () |
| Rectify potentially stale data post-mesh modification. | |
Declaration/destruction requests | |
| void | process_requests (bool assume_fully_consistent=false) |
| Process all requests for creation/destruction made since the last process_requests call. | |
|
default |
|
default |
|
default |
|
inlineexplicit |
| link_data | The host link data to mirror in the given memory space. |
|
virtualdefault |
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Relatively expensive check that verifies COO -> CSR and CSR -> COO consistency.
|
inline |
|
inline |
|
inline |
Note, on a single process or if the entities you wish to link are all of element rank or higher, then partial consistency is the same as full consistency.
If the global number of requests is non-zero, this function will enter a modification cycle if not already in one.
| assume_fully_consistent | [in] If we should assume that the requests are fully consistent or not. |