ESyS-Particle  2.3.4
ScalarTriangleFieldSlave Class Reference

Slave part for saving a scalar field defined on the triangles in a given TriMesh. More...

#include <ScalarTriangleFieldSlave.h>

Inheritance diagram for ScalarTriangleFieldSlave:
Collaboration diagram for ScalarTriangleFieldSlave:

Public Member Functions

 ScalarTriangleFieldSlave (TML_Comm *, TriMesh *, Triangle::ScalarFieldFunction)
 
virtual ~ScalarTriangleFieldSlave ()
 
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

TriMeshm_mesh
 
Triangle::ScalarFieldFunction m_rdf
 
- Protected Attributes inherited from AFieldSlave
TML_Commm_comm
 

Private Attributes

map< int, double > m_data
 

Detailed Description

Slave part for saving a scalar field defined on the triangles in a given TriMesh.

Author
Steffen Abe $Date$ $Revision$

Constructor & Destructor Documentation

◆ ScalarTriangleFieldSlave()

ScalarTriangleFieldSlave::ScalarTriangleFieldSlave ( TML_Comm comm,
TriMesh mesh,
Triangle::ScalarFieldFunction  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.

◆ ~ScalarTriangleFieldSlave()

virtual ScalarTriangleFieldSlave::~ScalarTriangleFieldSlave ( )
inlinevirtual

Member Function Documentation

◆ sendData()

void ScalarTriangleFieldSlave::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 ScalarTriangleFieldSlave::SendDataFull ( )
protectedvirtual

Send data as id,value pairs

References console, TriMesh::forAllTrianglesGetIndexed(), 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 ScalarTriangleFieldSlave::SendDataFullDX ( )
protectedvirtual

send data in a for saving as DX format

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,double> ScalarTriangleFieldSlave::m_data
private

◆ m_mesh

TriMesh* ScalarTriangleFieldSlave::m_mesh
protected

◆ m_rdf

Triangle::ScalarFieldFunction ScalarTriangleFieldSlave::m_rdf
protected

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