ESyS-Particle  2.3.4
VectorEdge2DFieldSlave Class Reference

Slave part for saving a vector field defined on the edges in a given Mesh2D. More...

#include <VectorEdge2DFieldSlave.h>

Inheritance diagram for VectorEdge2DFieldSlave:
Collaboration diagram for VectorEdge2DFieldSlave:

Public Member Functions

 VectorEdge2DFieldSlave (TML_Comm *, Mesh2D *, Edge2D::VectorFieldFunction)
 
virtual ~VectorEdge2DFieldSlave ()
 
virtual void sendData ()
 
- Public Member Functions inherited from AFieldSlave
 AFieldSlave (TML_Comm *)
 
virtual ~AFieldSlave ()
 

Protected Member Functions

virtual void SendDataFull ()
 
virtual void SendDataFullDX ()
 

Protected Attributes

Mesh2Dm_mesh
 
Edge2D::VectorFieldFunction m_rdf
 
- Protected Attributes inherited from AFieldSlave
TML_Commm_comm
 

Private Attributes

map< int, Vec3m_data
 

Detailed Description

Slave part for saving a vector field defined on the edges in a given Mesh2D.

Author
Steffen Abe $Date$ $Revision$

Constructor & Destructor Documentation

◆ VectorEdge2DFieldSlave()

VectorEdge2DFieldSlave::VectorEdge2DFieldSlave ( TML_Comm comm,
Mesh2D mesh,
Edge2D::VectorFieldFunction  rdf 
)

constructor

Parameters
commthe TML communicator used for sending the data back to the master
meshthe mesh on which the field is defined
rdfthe particle member function to access the data

References m_mesh, and m_rdf.

◆ ~VectorEdge2DFieldSlave()

virtual VectorEdge2DFieldSlave::~VectorEdge2DFieldSlave ( )
inlinevirtual

Member Function Documentation

◆ sendData()

void VectorEdge2DFieldSlave::sendData ( )
virtual

Send data back to master. Recieve the collection type and call the appropriate sending function

Implements AFieldSlave.

References COLL_TYPE_FULL, COLL_TYPE_FULL_DX, AFieldSlave::m_comm, TML_Comm::recv_broadcast(), SendDataFull(), and SendDataFullDX().

Here is the call graph for this function:

◆ SendDataFull()

void VectorEdge2DFieldSlave::SendDataFull ( )
protectedvirtual

Send data as id,value pairs

References console, Mesh2D::forAllEdgesGetIndexed(), AFieldSlave::m_comm, m_mesh, m_rdf, TML_Comm::send_gather(), and Console::XDebug().

Referenced by sendData().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SendDataFullDX()

void VectorEdge2DFieldSlave::SendDataFullDX ( )
protectedvirtual

send data in a for saving as DX format

Warning
NOT IMPLEMENTED

References console, and Console::XDebug().

Referenced by sendData().

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ m_data

map<int,Vec3> VectorEdge2DFieldSlave::m_data
private

◆ m_mesh

Mesh2D* VectorEdge2DFieldSlave::m_mesh
protected

◆ m_rdf

Edge2D::VectorFieldFunction VectorEdge2DFieldSlave::m_rdf
protected

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