ESyS-Particle
4.0.1
|
Master part of a vector field which is defined on the triangles in a given triangle mesh. More...
#include <VectorTriangleFieldMaster.h>
Public Member Functions | |
VectorTriangleFieldMaster (TML_Comm *, const string &, const string &, const string &, const string &, int, int, int) | |
~VectorTriangleFieldMaster () | |
virtual void | collect () |
virtual void | write () |
Protected Member Functions | |
virtual void | writeAsDX () |
virtual void | writeAsRAW () |
virtual void | writeAsSUM () |
virtual void | writeAsMAX () |
virtual void | writeAsRAW_SERIES () |
void | collectFull () |
void | collectFullDX () |
Protected Attributes | |
map< int, Vec3 > | m_data |
Master part of a vector field which is defined on the triangles in a given triangle mesh.
VectorTriangleFieldMaster::VectorTriangleFieldMaster | ( | TML_Comm * | comm, |
const string & | fieldname, | ||
const string & | meshname, | ||
const string & | filename, | ||
const string & | savetype, | ||
int | t_0, | ||
int | t_end, | ||
int | dt | ||
) |
Constructor. Send paramters to slaves
comm | the communicator |
fieldname | the name of the field to be saved |
meshname | the name of the mesh from which the field is taken |
filename | the name of the file the field is saved into |
savetype | the format in which the data is to be saved |
t_0 | first timestep to be saved |
t_end | last timestep to be saved |
dt | timesteps between saves |
References TML_Comm::broadcast(), and TML_Comm::broadcast_cont().
Destructor - does nothing
void VectorTriangleFieldMaster::collect | ( | ) | [virtual] |
Call the actual collection function according to the savetype
Implements AFieldMaster.
References TML_Comm::broadcast(), collectFull(), and collectFullDX().
void VectorTriangleFieldMaster::collectFull | ( | ) | [protected] |
collect the field data from the slaves, just id & field value for each triangle
References TML_Comm::broadcast(), TML_Comm::gather(), and BasicCon::XDebug().
Referenced by collect().
void VectorTriangleFieldMaster::collectFullDX | ( | ) | [protected] |
collect the field data from the slaves, including node and connectivity info
References BasicCon::XDebug().
Referenced by collect().
void VectorTriangleFieldMaster::write | ( | ) | [virtual] |
Call the actual writing function according to the savetype
Reimplemented from AFieldMaster.
References writeAsDX(), and writeAsRAW().
void VectorTriangleFieldMaster::writeAsDX | ( | ) | [protected, virtual] |
write the field in a DX-compatible file
Reimplemented from AFieldMaster.
References BasicCon::XDebug().
Referenced by write().
void VectorTriangleFieldMaster::writeAsRAW | ( | ) | [protected, virtual] |
Write the field as raw id,value groups
Reimplemented from AFieldMaster.
References AFieldMaster::makeFilename(), and BasicCon::XDebug().
Referenced by write().