14 #ifndef CHANNEL_INCLUDED 
   15 #define CHANNEL_INCLUDED 
static const int max_dimension
 
Communication library which wraps MPI. 
 
element_type operator[](unsigned int idx) const 
accessor to buffer 
 
int start()
collective start 
 
bool m_my_buf
whether buffer is owned by this instance. 
 
int append(Channel *const p)
append channel to the set. there is no way to remove a channel. 
 
Channel class for asynchronous communication. 
 
ChannelSet class for a collection of channels. 
 
int wait()
collective wait 
 
element_type & operator[](unsigned int idx)
accessor to buffer 
 
static std::vector< container_type > m_buf
 
element_type * m_buf
buffer 
 
const element_type * ptr()
accessor to buffer; returns pointer to the first element. 
 
char element_type
data transfer is byte-wise. 
 
ChannelSet(int nchannel=8)
constructor. default number of channels is 8 for upward and downward in 4 dimensions.