|
ESyS-Particle
2.3.4
|
Master part of a scalar field which is defined on the triangles in a given triangle mesh. More...
#include <ScalarTriangleFieldMaster.h>


Public Member Functions | |
| ScalarTriangleFieldMaster (TML_Comm *, const string &, const string &, const string &, const string &, int, int, int) | |
| ~ScalarTriangleFieldMaster () | |
| virtual void | collect () |
| virtual void | write () |
Public Member Functions inherited from AFieldMaster | |
| AFieldMaster (TML_Comm *, const string &, const string &, const string &, int, int, int) | |
| virtual | ~AFieldMaster () |
| virtual bool | needSave (int) |
Protected Member Functions | |
| virtual void | writeAsDX () |
| virtual void | writeAsRAW () |
| virtual void | writeAsSUM () |
| virtual void | writeAsMAX () |
| virtual void | writeAsRAW_SERIES () |
| void | collectFull () |
| void | collectFullDX () |
Protected Member Functions inherited from AFieldMaster | |
| string | makeFilename () |
| virtual void | writeAsPOV () |
| virtual void | writeAsSILO () |
| virtual void | writeAsRAW2 () |
| virtual void | writeAsRawWithID () |
| virtual void | writeAsRawWithPosID () |
Protected Attributes | |
| map< int, double > | m_data |
Protected Attributes inherited from AFieldMaster | |
| TML_Comm * | m_comm |
| string | m_field_name |
| string | m_file_name |
| int | m_t0 |
| int | m_tend |
| int | m_dt |
| int | m_id |
| int | m_save_count |
| int | m_write_type |
Master part of a scalar field which is defined on the triangles in a given triangle mesh.
| ScalarTriangleFieldMaster::ScalarTriangleFieldMaster | ( | 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(), TML_Comm::broadcast_cont(), AFieldMaster::m_comm, and AFieldMaster::m_id.

| ScalarTriangleFieldMaster::~ScalarTriangleFieldMaster | ( | ) |
Destructor - does nothing
|
virtual |
Call the actual collection function according to the savetype
Implements AFieldMaster.
References TML_Comm::broadcast(), collectFull(), collectFullDX(), AFieldMaster::m_comm, AFieldMaster::m_id, AFieldMaster::m_write_type, and WRITE_TYPE_DX.

|
protected |
collect the field data from the slaves, just id & field value for each triangle
References TML_Comm::broadcast(), COLL_TYPE_FULL, console, TML_Comm::gather(), esys::lsm::bpu::iter(), AFieldMaster::m_comm, m_data, and Console::XDebug().
Referenced by collect().


|
protected |
collect the field data from the slaves, including node and connectivity info
References console, and Console::XDebug().
Referenced by collect().


|
virtual |
Call the actual writing function according to the savetype
Reimplemented from AFieldMaster.
References AFieldMaster::m_write_type, WRITE_TYPE_DX, WRITE_TYPE_RAW, writeAsDX(), and writeAsRAW().

|
protectedvirtual |
write the field in a DX-compatible file
Reimplemented from AFieldMaster.
References console, and Console::XDebug().
Referenced by write().


|
inlineprotectedvirtual |
Reimplemented from AFieldMaster.
|
protectedvirtual |
Write the field as raw id,value groups
Reimplemented from AFieldMaster.
References console, esys::lsm::bpu::iter(), m_data, AFieldMaster::makeFilename(), and Console::XDebug().
Referenced by write().


|
inlineprotectedvirtual |
Reimplemented from AFieldMaster.
|
inlineprotectedvirtual |
Reimplemented from AFieldMaster.
|
protected |
Referenced by collectFull(), and writeAsRAW().