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

#include <exchange.h>

Inheritance diagram for wxm::dfem::sync::tools::sync_chunk_t:
wxm::dfem::sync::tools::component_exchange_t wxm::dfem::sync::tools::component_patch_exchange_t wxm::dfem::sync::tools::patch_exchange_t wxm::dfem::sync::tools::rank_exchange_t

Public Member Functions

 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

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

◆ sync_chunk_t()

wxm::dfem::sync::tools::sync_chunk_t::sync_chunk_t ( )
inline

◆ ~sync_chunk_t()

virtual wxm::dfem::sync::tools::sync_chunk_t::~sync_chunk_t ( )
inlinevirtual

Member Function Documentation

◆ read()

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

Read patch exchange data from pointer.

Note that call is consistent with 'write' call

Parameters
fromArray storing data

Reimplemented in wxm::dfem::sync::tools::component_patch_exchange_t.

◆ size()

virtual size_t wxm::dfem::sync::tools::sync_chunk_t::size ( )
inlinevirtual

Size of patch exchange chunk.

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

Returns
Size

Reimplemented in wxm::dfem::sync::tools::component_patch_exchange_t, wxm::dfem::sync::tools::rank_exchange_t, and wxm::dfem::sync::tools::patch_exchange_t.

◆ write()

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

Write patch exchange chunk to pointer.

Note that call is consistent with 'read' call

Parameters
toArray to place data

Reimplemented in wxm::dfem::sync::tools::component_patch_exchange_t.

Member Data Documentation

◆ _children

std::vector<sync_chunk_t*> wxm::dfem::sync::tools::sync_chunk_t::_children
protected

Children associated with this chunk.

◆ _children_offsets

std::vector<int> wxm::dfem::sync::tools::sync_chunk_t::_children_offsets
protected

List of offsets into a synchronization buffer.


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