TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Schema_Comm_statique Class Reference

#include <Schema_Comm.h>

Inheritance diagram for Schema_Comm_statique:
[legend]
Collaboration diagram for Schema_Comm_statique:
[legend]

Public Member Functions

const ArrOfInt & get_send_size () const
 Returns a reference to an array containing, for each processor in send_pe_list_, the size in bytes of the data.
const ArrOfInt & get_recv_size () const
 Returns a reference to an array containing, for each processor in send_pe_list_, the size in bytes of the data.
Public Member Functions inherited from Schema_Comm
 Schema_Comm ()
 Constructs a new communication schema.
 Schema_Comm (const Schema_Comm &)
 Copy constructor (new schema placed in RESET mode).
 ~Schema_Comm ()
 Destructs a communication schema.
void set_group (const Comm_Group &group)
 Obsolete method. The group associated with the schema is the current group at the time the schema is created.
const Comm_Groupget_group () const
 Returns the group associated with the schema.
const Schema_Commoperator= (const Schema_Comm &)
 Copy operator: copies the list of communicating processors.
void set_send_recv_pe_list (const ArrOfInt &send_pe_list, const ArrOfInt &recv_pe_list, const int me_to_me=0)
 Defines the list of processors to send data to and receive data from.
void begin_comm () const
 Reserves communication buffers for a new communication.
Sortiesend_buffer (int num_PE) const
 Returns the buffer corresponding to processor num_PE to stack data to send.
void echange_taille_et_messages () const
 Launches the data exchange between all processors.
void echange_messages (const ArrOfInt &recv_size) const
 Launches the data exchange.
Entreerecv_buffer (int num_PE) const
 Returns the buffer corresponding to processor num_PE to read received data.
void end_comm () const
 Clears the buffers and releases resources: reading of received data from buffers is complete.
const ArrOfInt & get_send_pe_list () const
const ArrOfInt & get_recv_pe_list () const
void set_all_to_allv_flag (int x)

Protected Attributes

ArrOfInt send_size_
ArrOfInt recv_size_
Protected Attributes inherited from Schema_Comm
ArrOfInt send_pe_list_
ArrOfInt recv_pe_list_
int me_to_me_
int use_all_to_allv_

Additional Inherited Members

Protected Types inherited from Schema_Comm
enum  Static_Status { UNINITIALIZED , RESET , WRITING , EXCHANGED }
Protected Member Functions inherited from Schema_Comm
void echange_taille (const ArrOfInt &send_size, ArrOfInt &recv_size) const
 Transmits the size of messages to send to the processors that will receive them.
void echange_messages (const ArrOfInt &send_size, const ArrOfInt &recv_size) const
 Launches the data exchange between all processors.
void check_send_recv_pe_list () const
 Verifies that send/recv_pe_list satisfy the property "you listen when I speak".
 OBS_PTR (Comm_Group) ref_group_
Static Protected Member Functions inherited from Schema_Comm
static OutputCommBufferobuffer (int pe)
 Accessor to a member of the obuffers_ array (with verification).
static InputCommBufferebuffer (int pe)
 Accessor to a member of the ebuffers_ array (with verification).
Static Protected Attributes inherited from Schema_Comm
static Static_Status status_ = UNINITIALIZED

Detailed Description

Definition at line 133 of file Schema_Comm.h.

Member Function Documentation

◆ get_recv_size()

const ArrOfInt & Schema_Comm_statique::get_recv_size ( ) const

Returns a reference to an array containing, for each processor in send_pe_list_, the size in bytes of the data.

received. TODO: TO FINISH !!!!

Definition at line 548 of file Schema_Comm.cpp.

◆ get_send_size()

const ArrOfInt & Schema_Comm_statique::get_send_size ( ) const

Returns a reference to an array containing, for each processor in send_pe_list_, the size in bytes of the data.

to send. TODO: TO FINISH !!!!

Definition at line 535 of file Schema_Comm.cpp.

Member Data Documentation

◆ recv_size_

ArrOfInt Schema_Comm_statique::recv_size_
protected

Definition at line 142 of file Schema_Comm.h.

◆ send_size_

ArrOfInt Schema_Comm_statique::send_size_
protected

Definition at line 141 of file Schema_Comm.h.


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