WARPXM v1.10.0
|
The component_patch_exchange_t class is used to exchange information between two patches. More...
#include <exchange.h>
The component_patch_exchange_t class is used to exchange information between two patches.
Public Member Functions | |
component_patch_exchange_t (const sync_link_t &link, wxm::dfem::variable::distributed_variable_t &variable, const int component_index) | |
Constructor. | |
void | print_geometry_information () |
void | read (const real *from_data) |
Read patch exchange data from pointer. | |
void | write (real *to_data, size_t buf_size) |
Write patch exchange chunk to pointer. | |
size_t | size () |
Size of patch exchange chunk. | |
![]() | |
sync_chunk_t () | |
virtual | ~sync_chunk_t () |
virtual size_t | size () |
Size of patch exchange chunk. | |
virtual void | read (const real *from_data) |
Read patch exchange data from pointer. | |
virtual void | write (real *to_data, size_t buf_size) |
Write patch exchange chunk to pointer. | |
Protected Attributes | |
wxm::dfem::variable::distributed_variable_t & | _variable |
Host variable of component. | |
size_t | _element_size |
Number of reals in each element. | |
int | _component_index |
Index of component in variable. | |
const sync_link_t & | _link |
Link associated with transfer. | |
![]() | |
std::vector< int > | _children_offsets |
List of offsets into a synchronization buffer. | |
std::vector< sync_chunk_t * > | _children |
Children associated with this chunk. | |
wxm::dfem::sync::tools::component_patch_exchange_t::component_patch_exchange_t | ( | const sync_link_t & | link, |
wxm::dfem::variable::distributed_variable_t & | variable, | ||
const int | component_index | ||
) |
Constructor.
void wxm::dfem::sync::tools::component_patch_exchange_t::print_geometry_information | ( | ) |
|
virtual |
Read patch exchange data from pointer.
Note that call is consistent with 'write' call
from | Array storing data |
Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.
|
inlinevirtual |
Size of patch exchange chunk.
Note that this call also calculates all offsets for reading and writing data
Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.
|
virtual |
Write patch exchange chunk to pointer.
Note that call is consistent with 'read' call
to | Array to place data |
Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.
|
protected |
Index of component in variable.
|
protected |
Number of reals in each element.
|
protected |
Link associated with transfer.
|
protected |
Host variable of component.