std::basic_string< CepsChar > CepsString
C++ format string.
std::make_unsigned_t< CepsInt > CepsUInt
Unsigned version on CepsInt.
Enables the writing of files.
Encapsulates all the geometrical data.
Convert a Geometry to a mesh file readable by the Medit viewer.
CepsBool m_showGeometryPartitioning
Replaces attributes with owners rank.
void writeHeader()
Medit headers are written using this method.
void showGeometryPartitioning(CepsBool flag)
If true, cell attribute is replaced by owning process rank. (default is false)
CepsUInt determineCellOwner(CepsUInt *cellOffset, CepsUInt index)
Get index of owner of cell (owner of first node)
void writeCells()
Writes cells and boundary cells with attributes.
void writeCellsOf(Mesh *mesh, CepsBool boundary=false)
Gather and write the cells.
MeditGeometryWriter(const CepsString &fileName, Geometry *geom)
Constructor with ouput file name and linked geometry.
~MeditGeometryWriter()
Destructor.
void writeNodes()
Writes node coordinates and attribute.
Geometry * m_geom
Geometry to write.
Geometrical information of 1,2 or 3D distributed cells.