std::basic_string< CepsChar > CepsString
C++ format string.
std::vector< _Type, _Alloc > CepsVector
C++ vector.
float CepsReal
Need single precision floating point.
std::shared_ptr< DistributedHaloVector > DHVecPtr
Typedef for pointer on Distributed Halo CepsVector.
Abstract Class for all numerical method (FE, FD, FV etc)
Enables the writing of files.
CepsVector< CepsString > m_customNames
Custom data name, printed in header.
CepsVector< CepsReal3D > m_points
Points location.
CepsBool m_canAddData
Prevents addition of data after header is written.
CepsBool hasSomethingToWrite() const
Tells if some data must be written. If not, why bother ?
AbstractDiscretization * m_discr
Link to descretization (and problem within)
void write(CepsReal t, DHVecPtr data)
Writes the content of data at indices set in constructor.
TimeWriter(const CepsString &fileName, const CepsVector< CepsReal3D > &points, AbstractDiscretization *discr)
Constructor.
CepsVector< CepsDofGlobalIndex > m_dofIndices
Points IDs.
void writeHeader()
Writes comment lines to indicate what are the variables.
void addCustomData(const CepsString &name, CepsReal *data)
Add a custom data to be written in the outputfile. Custom data cannot be added after header has been ...
CepsVector< CepsReal * > m_customData
Custom data, careful with ptr handling.