WARPXM v1.10.0
Loading...
Searching...
No Matches
wxm::dfem::sync::tools::component_patch_exchange_t Class Reference

The component_patch_exchange_t class is used to exchange information between two patches. More...

#include <exchange.h>

Inheritance diagram for wxm::dfem::sync::tools::component_patch_exchange_t:
wxm::dfem::sync::tools::sync_chunk_t

Detailed Description

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.
 
- Public Member Functions inherited from wxm::dfem::sync::tools::sync_chunk_t
 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.
 
- Protected Attributes inherited from wxm::dfem::sync::tools::sync_chunk_t
std::vector< int > _children_offsets
 List of offsets into a synchronization buffer.
 
std::vector< sync_chunk_t * > _children
 Children associated with this chunk.
 

Constructor & Destructor Documentation

◆ component_patch_exchange_t()

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.

Member Function Documentation

◆ print_geometry_information()

void wxm::dfem::sync::tools::component_patch_exchange_t::print_geometry_information ( )

◆ read()

void wxm::dfem::sync::tools::component_patch_exchange_t::read ( const real from_data)
virtual

Read patch exchange data from pointer.

Note that call is consistent with 'write' call

Parameters
fromArray storing data

Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.

◆ size()

size_t wxm::dfem::sync::tools::component_patch_exchange_t::size ( )
inlinevirtual

Size of patch exchange chunk.

Note that this call also calculates all offsets for reading and writing data

Returns
Size

Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.

◆ write()

void wxm::dfem::sync::tools::component_patch_exchange_t::write ( real to_data,
size_t  buf_size 
)
virtual

Write patch exchange chunk to pointer.

Note that call is consistent with 'read' call

Parameters
toArray to place data

Reimplemented from wxm::dfem::sync::tools::sync_chunk_t.

Member Data Documentation

◆ _component_index

int wxm::dfem::sync::tools::component_patch_exchange_t::_component_index
protected

Index of component in variable.

◆ _element_size

size_t wxm::dfem::sync::tools::component_patch_exchange_t::_element_size
protected

Number of reals in each element.

◆ _link

const sync_link_t& wxm::dfem::sync::tools::component_patch_exchange_t::_link
protected

Link associated with transfer.

◆ _variable

wxm::dfem::variable::distributed_variable_t& wxm::dfem::sync::tools::component_patch_exchange_t::_variable
protected

Host variable of component.


The documentation for this class was generated from the following file: